Icon route added
This commit is contained in:
10
src/routes/rezepte/icon/+page.ts
Normal file
10
src/routes/rezepte/icon/+page.ts
Normal file
@ -0,0 +1,10 @@
|
||||
import type { PageLoad } from "./$types";
|
||||
|
||||
export async function load({ fetch }) {
|
||||
let current_month = new Date().getMonth() + 1
|
||||
const res_icons = await fetch(`/api/items/icon`);
|
||||
const item = await res_icons.json();
|
||||
return {
|
||||
icons: item,
|
||||
};
|
||||
};
|
Reference in New Issue
Block a user