How to integrate Strapi API and Admin Panel with another node app (that consumes Strapi API)?
Okay I just played with the routing prefix and that is the solution I suggest you.
So you will have to build you website app. And push the build in the ./public
folder of the Strapi application.
Then in your api/.../config/routes.json
files you will have to add an option prefix
in the config
key of each of your routes and for all your APIs
{
"routes": [
{
"method": "POST",
"path": "/restaurants",
"handler": "Restaurant.create",
"config": {
"policies": [],
"prefix": "/api"
}
}
]
}
- So at the end you will have your admin on
/admin
- Your APIs endpoints prefixed by
/api
- And your website/assets on
/