5 lines
150 B
TypeScript
5 lines
150 B
TypeScript
export const load = async ({ fetch }) => {
|
|
const response = await fetch(`/api/guides`);
|
|
const guides = await response.json();
|
|
return { guides };
|
|
}; |