Open koraysels opened 10 years ago
with express we could do somthing like
routes.all('/protected/*', ensureAuthenticated, function (req, res) { });
how can we achieve this in director?
I did this with the before: option where you define your routes
before:
with express we could do somthing like
routes.all('/protected/*', ensureAuthenticated, function (req, res) { });
how can we achieve this in director?