Icon route added

This commit is contained in:
2023-07-03 12:39:34 +02:00
parent 17cfa89cce
commit 7eb731181a
12 changed files with 205 additions and 27 deletions

View 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,
};
};