djvirgen / virgen-acl

A simple ACL for node.js
MIT License
74 stars 19 forks source link

Load roles and access setup from config (e.g. json) file #19

Open anhcao142 opened 7 years ago

anhcao142 commented 7 years ago

My access control setup is usually static and rarely change, therefore I wonder if we can have a feature that imports the setup from an external config file instead of a .js file.

djvirgen commented 7 years ago

Hi @boylove142, can you propose a format for the JSON file and an interface to import it? Thanks!