Building app with REST API in Symfony3 and AngularJS, problems with routing

0

Good morning,

This time I am developing a new application and I am going to build the app with a REST API in Symfony3 and the frontend that consumes the API in AngularJS , I have several doubts and I hope you can help me, they are the following .

I have created two folders:

backend/
frontend/

In the backend folder I have everything related to the REST API with Symfony3 and in the frontend folder, the AngularJS files, my question is: is the server running in the backend folder, how do I render the pages that are on the client side in the frontend folder?

For example, when I place the path http://127.0.0.1:8000/ this renders me the file that is in frontend / src / home.html

My biggest doubt is, how to make the routes defined on the server are only the API and the others or any other is isolated from the API that is defined in the frontend or mobile app

Thank you, I hope someone will help me with the configuration and explain or give me a link where they explain it, thanks in advance to everyone.

Greetings.

    
asked by Carlos Aguilera 31.07.2017 в 17:39
source

0 answers