In the documentation, all of the examples I've seen register request handlers using methods such as:
- before()
- after()
- use()
- install() for extensions
Is there a way to limit the scope of these handlers to only affect some routes instead of every route?
Would it be possible to apply a handler to only the specified controller methods when using the MVC API for example?
EDIT: I noticed that sections 3.4 and 3.5 of the documentation address this subject. However I'm not sure how to apply it to the controller routes in a MVC setup.