Spaces:
Running
Running
import type { Snippet } from '$lib/types' | |
export async function load({ fetch }) { | |
const response = await fetch('api/snippets') | |
const snippets: Snippet[] = await response.json() | |
return { snippets } | |
} | |