Files
homepage/src/routes/[recipeLang=recipeLang]/icon/+page.ts
Alexander Bocken 3e43b731c9
Some checks failed
CI / update (push) Failing after 2m52s
add route matcher to fix /login and /logout routes
Use SvelteKit param matcher to constrain [recipeLang] to only match
'recipes' or 'rezepte', preventing it from catching /login, /logout,
and other non-recipe routes.
2025-12-26 22:48:01 +01:00

11 lines
277 B
TypeScript

import type { PageLoad } from "./$types";
export async function load({ fetch }) {
let current_month = new Date().getMonth() + 1
const res_icons = await fetch(`/api/rezepte/items/icon`);
const item = await res_icons.json();
return {
icons: item,
};
};