Api Methods
authorize
[type: middleware]
This is the middleware that manages your application requests based on the role and acl rules.
app.get(acl.authorize);
unless
[type:function, params: function or object]
By default any route that has no defined policy against it is blocked, this means you cannot access this route until you specify a policy. This method enables you to exclude unprotected routes. This method uses express-unless package to achieve this functionality. For more details on its usage follow this link express-unless
//assuming we want to hide /auth/google from express acl app.use(acl.authorize.unless({path:['/auth/google']}));
Anytime that this route is visited, unless method will exclude it from being passed though our middleware.
Note
You don't have to install express-unless it has already been included into the project.