1
0
mirror of https://github.com/flarum/core.git synced 2025-07-31 05:30:38 +02:00

Roughly implement routes and data preloading

Only preloading data for basic requests w/o query params, at least for
the moment - if we have to preload for something like
/?q=test&sort=newest, we end up having to duplicate a whole lot of
logic between JS/PHP.
This commit is contained in:
Toby Zerner
2015-06-18 17:41:37 +09:30
parent c2da4a946f
commit 822a216cc9
11 changed files with 126 additions and 26 deletions

View File

@@ -25,6 +25,7 @@
app.config = {!! json_encode($config) !!};
app.preload = {
data: {!! json_encode($data) !!},
response: {!! json_encode($response) !!},
session: {!! json_encode($session) !!}
};
app.boot();