mirror of
https://github.com/strapi/strapi.git
synced 2025-07-30 04:20:34 +00:00

As a result of taking a look on PR #1967 I realized there is 819 executable files in this repository. It is obvious this is an error.
1.1 KiB
1.1 KiB
strapi-generate-policy
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