Enable acl feature
- Source:
- features/acl.js
Members
-
<static> type :string
-
This feature is loaded at service stage
Type:
- string
- Source:
- features/acl.js
Methods
-
<static> load_(app, config)
-
Load the feature
Parameters:
Name Type Description app
Routable The app module object
config
object Acl settings
- Source:
- features/acl.js
Properties:
Name Type Argument Description config.backend
string Backend store type of acl, memory, mongodb, redis
config.dataSource
string <optional>
Store type of acl
config.prefix
object <optional>
Store options
Returns:
- Type
- Promise.<*>
Example
acl: { backend: 'mongodb.dataSourceName' }