trailpack-policy
Trailpack policy class. Exposes Trails Application resources to the class instances.
Trailpack policies should extend this class, it allow you to use hapi API interface for all webserver compatible (currently trailpack-hapi and trailpack-express).
For basic Trails policies you should use trails-policy.
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.