simplify structure by remove (rezepte)
This commit is contained in:
7
src/routes/rezepte/category/+page.ts
Normal file
7
src/routes/rezepte/category/+page.ts
Normal file
@ -0,0 +1,7 @@
|
||||
import type { PageLoad } from "./$types";
|
||||
|
||||
export async function load({ fetch}) {
|
||||
const res = await fetch(`/api/rezepte/items/category`);
|
||||
const categories= await res.json();
|
||||
return {categories}
|
||||
};
|
Reference in New Issue
Block a user