I want to enable the manually created API by default

Welcome to the Strapi Community Forums :waffle: @yuichiromukaiyama
I would suggest here that the way you can do this, is to use bootstrap.js

From here you can query the permissions you have and set them. It’s a bit of setup but I did it a while ago at my old work.

What I did was the following.

  • Made an array of the plugins, api’s I wanted to enable etc by default
  • Queried permission plugin to get all the permissions,
  • Pushed the new permissions into the existing permissions

All this was done on bootstrap.js

1 Like