mirror of
https://github.com/strapi/strapi.git
synced 2025-10-19 12:02:38 +00:00

When ‘oneWay’ relation is created the target model file is also updated with a reference to the relation. This is not required for a oneWay relation since it never will or can be populated from the other way around.
strapi-generate-controller
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