How to modify default index action/routers "/" in strapi4

System Information
  • Strapi Version: 4

I’m a newbie to strapi. I wanna modify default index action/routers of “/” in strapi
due to the source code of strapi strapi/index.js at main · strapi/strapi · GitHub
it’s a middleware of public in strapi, that define the defaultIndex in public middleware,but how to modify the config of the system ,which would change the default route? or default controller action?

Welcome to the Community @jack1 :cake:
So when you say modify default actions? Do you mean you want to change /api to be / is this your goal or you on about something else ?

thanks a lot for help. i’ve found the docs here: