How to pass a list of ranting from the server to the client?

The situation is the following - write a website in laravel and react + redux. Really don't like to duplicate things on both sides and so the question arose - is there a normal way to pass a list of ranting for the download page? I understand that for multipart paths need some kind of library, which will replace the parameters in the mask, so the question should rather be - are you using some library for the feigning of ranting from the server to the client? It can be not necessarily laravel, but, say, rails or Django. Or all the same pretender duplicate all the way?
July 2nd 19 at 14:18
2 answers
July 2nd 19 at 14:20
$routecollection an = Route::getRoutes();

foreach ($routecollection an as $value) {
 echo $value->getPath();
}


Route::getByName()
Route::getByAction()


See Larval API class Route and routecollection an, methods are available through the facades
I think the question was - jules_Nolan10 commented on July 2nd 19 at 14:23
: You are absolutely right, the question is not that. How to get a list of ranting I know... - Viva commented on July 2nd 19 at 14:26
I, too, asked such a question. I have only angular on the front. In principle, I think it is possible. If you have a solid application at the front, by the method OPTION, such as GET or get during the page load and then in localstorage, for example, keeping - jules_Nolan10 commented on July 2nd 19 at 14:29
: The problems start when you need to specify the parameters for the query. Ie not just a static rout - /cities /counties, etc., and /users/{user} or parameterized Routh... - Viva commented on July 2nd 19 at 14:32
July 2nd 19 at 14:22

Find more questions by tags ReduxLaravelReact