Files
wanderer/web/src/routes/+page.ts
Christian Beutel 01e1053569 adds search api
2024-03-10 00:52:45 +01:00

8 lines
338 B
TypeScript

import { categories_index } from "$lib/stores/category_store";
import { trails_index } from "$lib/stores/trail_store";
import type { ServerLoad } from "@sveltejs/kit";
export const load: ServerLoad = async ({ params, locals, fetch }) => {
await trails_index({perPage: 20, random: true, f: fetch})
await categories_index(fetch)
};