Open h2non opened 8 years ago
This seems like it might add a lot of extra complexity for not a lot of benefit. If your params have a finite set of possible values, you could just register the routes explicitly. Perhaps you could provided a stronger justification for your idea.
@h2non any answer to @rickb777's comment?
In order to simplify logic and avoid code duplication while running redundant tasks for certain path params, it would be great adding some sort of path param specific handlers who observes if a given dynamic param is present in the matched router, and then trigger those handlers to perform custom tasks, such as validations, DB queries...
A representative example could be:
The router execution order should be: