-
-
Notifications
You must be signed in to change notification settings - Fork 174
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Variadic Route Handler Assignment #18
Comments
I think your current work around is cool.. Probably using the current workaround will be okay so far it doesn't affect the speed of polka. |
I'm strongly in favor of per route middleware. I just faced a case when I need to use different |
@plakak I hear ya. Still deciding. Please remember that you can can attach a global middleware that specifies which parser to use based on |
Currently, Polka only allows 1 handler per route pattern. Express, on the other hand, allows you to assign as many as you want, constructing per-route middleware groups.
This is still a maybe as it would require changes to
Trouter
. Speed is still the #1 priority, and you can already achieve similar behavior by manually calling middleware from within the single handler.Current "workaround"
The text was updated successfully, but these errors were encountered: