mirror of
https://github.com/flarum/core.git
synced 2025-07-31 21:50:50 +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:
@@ -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();
|
||||
|
Reference in New Issue
Block a user