Some checks failed
CI / update (push) Failing after 2m52s
Use SvelteKit param matcher to constrain [recipeLang] to only match 'recipes' or 'rezepte', preventing it from catching /login, /logout, and other non-recipe routes.
11 lines
277 B
TypeScript
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,
|
|
};
|
|
};
|