How to make the front end on the Vue and the backend on PHP?

In General, the question is simple, as clear as day, but I had a problem. Was domain and pediment. On the main domain were only the frontend js on the Vue with vue routing-router, and on the subdomain lay the api for php, respectively, also with a single entry point. Job script on the frontend, if you need more information using vue-resource requested from the subdomain. Now I need to combine them under one domain.
Accordingly:
for most pages is to return a single file index.html that is stored in the root.
the folder api in the answer must come the results of the scripts.

That is
xxx.xxx.xx/xxx returns the router to view.
xxx.xxx.xx/api/xxx/xxx - sends a get for the api (also done via htaccess, use the mvc architecture).
June 10th 19 at 14:35
1 answer
June 10th 19 at 14:37
By vue impossible. It is necessary to connect the Axios and give to the api through it. IMHO.

Find more questions by tags Vue.js