Undefine a route from a previous Sprinkle?

What’s the correct way to undefine a route from the Core (or any previously loaded) Sprinkle?

At the moment I’m throwing a NotFoundException for routes I want to disable, is there a better or preferred approach?

Thanks
Andrew

For the time being, have it point to a controller method that always throws a 404 is the best solution.

1 Like