UNPKG

access-manager

Version:

A one-stop solution for implementing authenticated and anonymous continuous sessions with user handling and whitelisted acl.

9 lines 654 B
[ {"path":"/rest/admin*", "roles":[ {"role": "admin", "methods": ["ALL"]}, {"role": "super", "methods": ["ALL"]} ]}, {"path":"/rest/login", "roles":[ {"role": "anonymous", "methods": ["POST"]} ]}, {"path":"/rest/logout", "roles":[ {"role": "user", "methods": ["GET","POST"]} ]}, {"path":"/rest/news*", "roles":[ {"role": "*", "methods": ["GET"]} ]}, {"path":"/rest/messages*", "roles":[ {"role": "user", "methods": ["GET","POST","DELETE"]} ]}, {"path":"/rest/user", "roles":[ {"role": "user", "methods": ["GET"]} ]}, {"path":"/rest/register", "roles":[ {"role": "anonymous", "methods": ["POST"]}, {"role": "super", "methods": ["POST"]} ]} ]