Answer the question
In order to leave comments, you need to log in
How is backend and frontend (routing) separated?
The question, I suppose, is very easy, but unfortunately I did not google the answer myself ...
I have an api and it is available at the url domain.example/api/.........
All other urls must be processed by the front
How to do so that the front router and the back router do not intersect? After all, it turns out that each request to the server is backed up.
Thanks in advance :) And sorry for the stupid question.
Answer the question
In order to leave comments, you need to log in
Give to any request other than /api the index.html file of your application.
Well, the application will figure out which page to render with its router.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question