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

export const load = (async ({ fetch }) => {
	return await fetchApi(`election?t=${Math.floor(Date.now() / 1000)}`, fetch).then(r =>
		r.json()
	)
}) satisfies PageLoad