blob: b17d1d5a04e45296c636d295c9135a595d62be3e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
import { redirect, type RequestHandler } from '@sveltejs/kit';
import { clearSession } from '$lib/server/auth';
export const POST: RequestHandler = async ({ cookies }) => {
clearSession(cookies);
throw redirect(303, '/');
};
export const GET: RequestHandler = async ({ cookies }) => {
clearSession(cookies);
throw redirect(303, '/');
};
|