D
D
Danil Chekalin2016-04-26 13:43:01
symfony
Danil Chekalin, 2016-04-26 13:43:01

How to properly implement backend + spa co-routing?

I am implementing a task where Symfony 2.8 and Marionette.js are used. It is necessary that when referring to url`s:

'/'
'/album/:id'
'/album/:id/page/:page'

after rendering html, the corresponding route was opened for marionette.
In cases with react, isomorphic applications are written with rendering on the server side. In this situation, I don't know how to solve this problem. Do not write three web routes to issue the same html.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
aen, 2016-04-27
@dakiesse

The puppet does not have server rendering, so it is not necessary to talk about isomorphic applications. You need to implement the REST API on the backend, and the puppet itself will deal with the routes.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question