Closed AyushG3112 closed 6 years ago
Hi.
I will think about it. Now you can use GROUP()
:
exports.install = function() {
GROUP(['#middleware', 'authorize'], function() {
ROUTE('/api/posts/', json_posts, ['put']);
ROUTE('/api/commnets/', json_posts, ['post']);
});
}
https://docs.totaljs.com/latest/en.html#api~Framework~F.group
I thought about it and it would be useless. Thank you!
Hi,
I have a middleware, say
maintenance-mode-checker
. I want to run this middleware for all my routes, excluding 3 specific ones. Is it possible to introduce negation flags in the system, so that global middlewares can be blocked from executed for specific routes?For example, maybe I can do