20 lines
679 B
PHP
20 lines
679 B
PHP
@include('modules.script-constants')
|
|
<script nonce="{{ $nonce ?? '' }}">
|
|
if (!window.__SYSTEM._routes) {
|
|
window.__SYSTEM._routes = {};
|
|
}
|
|
window.__SYSTEM._routes.fo = {
|
|
news: {
|
|
filtered: "{{ route('fo.news.filtered') }}",
|
|
show: "{{ route('fo.news.show', ['slug' => 'SLUG']) }}"
|
|
},
|
|
ranges: {
|
|
filtered: "{{ route('fo.ranges.filtered') }}",
|
|
show: "{{ route('fo.ranges.show', ['slug' => 'SLUG']) }}"
|
|
},
|
|
products: {
|
|
filtered: "{{ route('fo.products.filtered') }}",
|
|
show: "{{ route('fo.products.show', ['slug' => 'SLUG']) }}"
|
|
},
|
|
};
|
|
</script>
|