Better support for different middleware functions on different routes #45172
Replies: 3 comments 6 replies
-
it is definitely more intuitive and makes it easier to make less complex api. At least for me coming from express.js |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
Maybe a solution where you can multiple e.g.
where the |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Describe the feature you'd like to request
I believe that being able of having multiple different middleware functions that work on different routes is needed, the current approach (see here) is not the best for code quality.
Describe the solution you'd like
We could create a middleware folder where we have multiple different middleware files that handle logic for different routes.
Also multiple different middleware can be run in the same route and there needs to be an order of execution of middlewares.
Describe alternatives you've considered
The current implementation, however it is not the best.
Beta Was this translation helpful? Give feedback.
All reactions