File size: 269 Bytes
36f8d04
de10f77
36f8d04
de10f77
36f8d04
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
import { redirect } from '@sveltejs/kit';
import type { PageServerLoad } from './$types';

export const load: PageServerLoad = (event) => {
	if (!event.locals.user) {
		throw redirect(303, `/connexion?suivant=${encodeURIComponent(event.url.href)}`);
	}

	return {};
};