How to add custom routes to core routes in Strapi 4

I have acheieved the same by creating a custom route file along with the default route file


In my custom routes files, I have defined the mapping to custom controller

In custom-controller.js, you can defined your controller like this

hope this help.

5 Likes