restify-basic-acl
Enable basic role-based ACL on an HTTP-method basis. Great for small applications that manage one or two resources, such as micro-services.
Installation & Usage
After installing restify-basic-acl
with npm i --save restify-basic-acl
,
add it as a Restify plugin:
let restify = ;let basicAcl = ; let roles = user: 'get' admin: 'get' 'post' 'put' 'delete' ; let server = restify; server ;