How to build a Custom Strapi Plugin

you can think of it more as a quick fix I used at the time of writing. It does not have to be there. I only needed a route.

You can create a controller from scratch using either of the two options below:

  • Using the CLI strapi generate:controller restaurant.
    Read the CLI documentation for more information.
  • Manually create a JavaScript file in ./api/**/controllers.

Hope this helps.

1 Like