How to make a custom plugin api route accessible to everyone?

System Information
  • Strapi Version: 4
  • Operating System: mac
  • Database:
  • Node Version:
  • NPM Version:
  • Yarn Version:

I have a custom plugin that creates content-types. I want to be able to pull the created for those content-types, I first try to access the basic, automatically created route in my plugin

GET /customplugin

But I get 401 unauthorized.

How can I make the route accessible for everyone? (No authorization needed)

To a route object, just add inside the prop config, the prop auth with the value false