blob: 8eebc76ec9419d30dcf2d200c05913aec6c02e67 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
import { redirect } from '@sveltejs/kit';
import type { LayoutServerLoad } from './$types';
export const load: LayoutServerLoad = async ({ locals }) => {
if (!locals.account) {
throw redirect(303, '/');
}
return {
account: locals.account
};
};
|