Documentation does not detect Custom Routes

System Information
  • Strapi Version: 4.1.7
  • Operating System: Ubuntu
  • Database: Postgres
  • Node Version: 14.19.1
  • NPM Version: 6.14.16
  • Yarn Version:

I’ve successfully created a custom route and the endpoint works correctly, but the after regenerating the Documentation, the route does not appear in the Swagger Docs. Tried restart/rebuild. Not sure what else I’m missing. (eg: ./src/api/restaurant/routes/custom-restaurant.js)

Thanks for the help in advance.

Found a solution by snoofer

1 Like