System Information
- Strapi Version: 4.1.12
- Operating System: Mac OSX / Docker for Mac
- Database: MySQL/MariaDB 10.7
- Node Version: 16.15.0
- NPM Version: 8.10.0
- Yarn Version: 1.22.18
For having a more compact view of the routes in the admin panel, I’m subliming some routes to a (custom created) global
controller. For example I have the collection type gender
which I want to store (filewise in the repo) under /src/api/global/controllers/gender.js
and also move the routes to the global
folder. In the original collection type folder gender
, I change the routes config to:
module.exports = createCoreRouter('api::gender.gender', {
only: []
});
With this, all endpoints shall be removed from the admin panel in the roles
overview. Works so far so good, except the fact that one route stays there:
This does unfortunately a disservice to me, since I want to remove all endpoints from gender
(which will appear in my configuration type under global
:
Is there a way to remove the createLocalization
route from the admin panel through a configuration in the gender/routes/gender.js
?