strapi-generate-controller

Generate a controller for a Strapi API.

Usage no npm install needed!

<script type="module">
  import strapiGenerateController from 'https://cdn.skypack.dev/strapi-generate-controller';
</script>

README

strapi-generate-controller

npm version npm downloads npm dependencies Build status Slack status

This Strapi generator contains the default files for a controller.

This generator can be called with:

$ strapi generate:controller controllerName apiName

For example if you want to generate a group controller for the user API:

$ strapi generate:controller group user

Resources

Links