Skip to content

Is it possible to attach handlers to only specific routes? #3480

@nonetallt

Description

@nonetallt

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions