mirror of
https://github.com/BradNut/boredgame
synced 2025-09-08 17:40:22 +00:00
11 lines
234 B
TypeScript
11 lines
234 B
TypeScript
|
|
import { redirect } from "@sveltejs/kit";
|
||
|
|
import type { PageServerLoad } from "../$types";
|
||
|
|
|
||
|
|
export const load: PageServerLoad = async ({ locals, fetch }) => {
|
||
|
|
const user = locals.user;
|
||
|
|
if (!user) {
|
||
|
|
redirect(302, '/login');
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
}
|