A
A
Alexander2018-11-20 15:46:11
symfony
Alexander, 2018-11-20 15:46:11

How to properly organize Symfony + Vue routing?

I make a small admin panel, something like a CRM-ki
, there is a backend on Symphony4 and also a restore pulls up information from several more places
on the symphony, I make a route for the Vue application, and then the routing works due to JS,
for example
, localhost/vue/products/

  1. prom
  2. crm
  3. some

localhost/vue/messages/
  1. prom
  2. crm
  3. some

when I open symphony route in browser, everything is ok (localhost/vue/products/)
but if I try to open a route that was configured in vue (localhost/vue/products/PROM)
of course, I get a 404 error, because symphony does not know about such a route anything
as it is correct to organize routing in that case?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
N
nvdfxx, 2018-11-20
@nvdfxx

and you on request from the front on the route localhost/vue/products/ give information for rendering the page /PROM ?

V
Vadim, 2018-11-20
@kylt_lichnosti

So take that route.
https://symfony.com/doc/current/routing.html

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question