At the moment i use the Node Module jwtRestify for authentication. And i have one problem, i would like exclude some paths from the authentication which is no problem with:
server.use(jwtRestify({
secret: config.secret,
requestProperty: 'decoded'}).unless({
path: [
baseUrl + '/login',
baseUrl + '/admin/users',
baseUrl + '/admin/users/:id',
]}))
But the /admin/users/:id dont work at all is there a way to exclude all admin routes with something like an regex?