aboutsummaryrefslogtreecommitdiff
path: root/src/routes/leaderboards/+page.ts
blob: f28ac79428b5ee3953c7ea72596813ebae81ba51 (plain)
1
2
3
4
5
6
import type { PageLoad } from './$types'
import { fetchApi } from '$lib/api'

export const load = (async ({ fetch }) => {
	return await fetchApi(`leaderboards`, fetch).then(r => r.json())
}) satisfies PageLoad