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 would like to know if there is a way to apply more than one middleware to a resource. Maybe something similar to your "logger_middleware.rs" example but applying only for one resource because I suppose the sentence server.utilize(mw) applies "mw" to all server's resources.
I don't think we have a good story for this currently other than adding a bunch of things mounted under the same path which may be somewhat inefficient.
Hi,
I would like to know if there is a way to apply more than one middleware to a resource. Maybe something similar to your "logger_middleware.rs" example but applying only for one resource because I suppose the sentence server.utilize(mw) applies "mw" to all server's resources.
It would be the expressjs pattern:
app.get('/path/to/something', mw1, mw2, ..., mwN, function(req, res) {
...
});
Thank you very much in advance.
The text was updated successfully, but these errors were encountered: