strapi/packages/strapi-generate-policy
Alexandre Bodin 2fd29041f8 v3.6.1
2021-04-29 14:34:38 +02:00
..
2019-04-16 09:05:47 +02:00
2021-01-28 16:57:29 +01:00
2020-07-08 09:45:28 +02:00
2021-04-29 14:34:38 +02:00

strapi-generate-policy

npm version npm downloads npm dependencies Build status Slack status

This Strapi generator contains the default files for a policy.

This generator can be called with:

$ strapi generate:policy policyName apiName

For example if you want to generate a isAuthenticated policy for the user API:

$ strapi generate:policy isAuthenticated user

Resources