Compare commits
3 commits
85b178ca07
...
76d9f46fa5
Author | SHA1 | Date | |
---|---|---|---|
76d9f46fa5 | |||
b1d2481e66 | |||
4fb60c5892 |
3 changed files with 8 additions and 2 deletions
4
frontend/src/hooks.server.ts
Normal file
4
frontend/src/hooks.server.ts
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
export async function handle({ event, resolve }) {
|
||||||
|
const response = await resolve(event);
|
||||||
|
return response;
|
||||||
|
}
|
|
@ -1,7 +1,7 @@
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import '../../css/header.css';
|
import '../../css/header.css';
|
||||||
|
|
||||||
export const title: string = 'Naturalistici';
|
export let title: string = 'Naturalistici';
|
||||||
|
|
||||||
const goBack = () => {
|
const goBack = () => {
|
||||||
history.back();
|
history.back();
|
||||||
|
|
|
@ -11,8 +11,10 @@ export async function load({ params }) {
|
||||||
error(404);
|
error(404);
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
const toReturn = {
|
||||||
category: category.name_it,
|
category: category.name_it,
|
||||||
routes: await getRouteByCategory(categoryId),
|
routes: await getRouteByCategory(categoryId),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return toReturn;
|
||||||
}
|
}
|
Loading…
Reference in a new issue