You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I know it is possible to register middleware functions based on the route. But how do I register middleware functions based on the same route with different HTTP methods.
For example,
/api GET will have a different set of middleware.
/api POST will have a different set of middleware.
The text was updated successfully, but these errors were encountered:
I would also like to know if this is possible... after reading through the meddleware readme on npm it doesn't seem to be supported. What I am looking for is something like this app.post(/\/private\/.*/, myMiddleware);. Any thoughts?
I know it is possible to register middleware functions based on the route. But how do I register middleware functions based on the same route with different HTTP methods.
For example,
/api GET will have a different set of middleware.
/api POST will have a different set of middleware.
The text was updated successfully, but these errors were encountered: