trails-policy
trailsjs/trails in v3.
Note: This module is deprecated in Trails v2. It will be merged intoTrails Policy Class. Exposes Trails Application resources to the class instances. Policies should extend this Class.
Usage
In api/policies/MyPolicy.js:
const Policy = { // ... }
In config/policies.js:
moduleexports = SomeController: doSomething: 'MyPolicy.policyMethod'
Note: Even if you are only applying one policy to a controller method, you should
still enclose the string 'MyPolicy.policyMethod'
in an array.