# strapi-generate-policy
[![npm version](https://img.shields.io/npm/v/strapi-generate-policy.svg)](https://www.npmjs.org/package/strapi-generate-policy)
[![npm downloads](https://img.shields.io/npm/dm/strapi-generate-policy.svg)](https://www.npmjs.org/package/strapi-generate-policy)
[![npm dependencies](https://david-dm.org/strapi/strapi-generate-policy.svg)](https://david-dm.org/strapi/strapi-generate-policy)
[![Build status](https://travis-ci.org/strapi/strapi-generate-policy.svg?branch=master)](https://travis-ci.org/strapi/strapi-generate-policy)
[![Slack status](https://slack.strapi.io/badge.svg)](http://slack.strapi.io)
This Strapi generator contains the default files for a policy.
This generator can be called with:
```bash
$ strapi generate:policy policyName apiName
```
For example if you want to generate a `isAuthenticated` policy for the `user` API:
```bash
$ strapi generate:policy isAuthenticated user
```
## Resources
- [License](LICENSE)
## Links
- [Strapi website](http://strapi.io/)
- [Strapi community on Slack](http://slack.strapi.io)
- [Strapi news on Twitter](https://twitter.com/strapijs)