add destroy method to clear all registered routes