Many Improvements
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
import type { LayoutLoad } from './$types';
|
||||
import { getCategories } from '$lib/api';
|
||||
|
||||
export const load: LayoutLoad = async ({ fetch }) => {
|
||||
const categories = await getCategories(fetch);
|
||||
return { categories };
|
||||
};
|
||||
Reference in New Issue
Block a user