I have a React front-end and Flask API as back-end.
I wish to have both front-end and back-end routes accessible at same address. E.g frontend at myapp.web.com and backend at myapp.web.com/api.
It will have different deployments for them. I want to know how to do this.
Combining routes of frontend and backend
931 views Asked by Pritalgo At
1
Yes, you can have the same domain that can point to multiple services based on the path. Normally this can help you to resolve the
CORSissue.API
Frontend ingress
so in this case, all the requests that start with
/apiwill route to the backend app and rest of the requests will route to frontend.