I
I
Igor Kudryash2017-11-18 17:36:53
Backend
Igor Kudryash, 2017-11-18 17:36:53

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

1 answer(s)
A
Andrey Khokhlov, 2017-11-18
@ikudryash

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 question

Ask a Question

731 491 924 answers to any question