Good morning,
I am currently setting up a SPA application, where I want to manage all the routes with AngularJS and that the Express routes are only for API, the problem I have is that if I configure the Angular routes for example:
http://localhost:3001/login
For angular with a redirection I get it, but if I'm standing on that route and surcharge (F5) the server says that there is no such route, and it is clear because there is no such route in the configuration of express routes, now my doubt is how do I configure it so that angular is the one that handles all routes? and even if I give F5 in a view can continue in it, is there any way to configure express for the route to handle them? the frontend and the backend only handle the routes for requests, that is to be clearly like API REST.
First of all thank you very much in advance.
Greetings.