Closed tonoli closed 2 years ago
@tonoli Thanks for this suggestion. I have this one in the backlog and I think it would be great if we could add it soon. Out of curiosity is this something you would be interested in working on?
Closing since this was handled on https://github.com/strapi/codemods/pull/36
The idea is to create a codemod that loops on all the folder of the new src/api folder. And edits the files in the folders
controllers/<route-name>.js
,routes/<route-name>.js
andservices/<route-name>.js
with the new methodscreateCoreController
,createCoreRouter
,createCoreService
v3 Router
v4 Router