https://github.com/cludden/sails-hook-must
https://github.com/cludden/sails-hook-must
Last synced: 12 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/cludden/sails-hook-must
- Owner: cludden
- License: mit
- Created: 2015-08-31T03:22:20.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2015-09-11T20:19:08.000Z (almost 11 years ago)
- Last Synced: 2025-06-04T14:50:36.263Z (about 1 year ago)
- Language: JavaScript
- Size: 137 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# sails-hook-must
a `sails` hook that replaces the default `policy` hook. This simply augments the default `policy` hook by auto-building any `sails-must` policies. For more info, see [sails-must](https://github.com/cludden/sails-must)
## Installing
Install via `npm`:
```npm install --save sails-hook-must```
Disable the default `policy` hook:
```javascript
// in .sailsrc
{
//..
"hooks": {
"policies": false
}
//..
}
```