From e144c82c717793567627cbe478d34fe9519f45d5 Mon Sep 17 00:00:00 2001 From: Fuwn Date: Wed, 13 Sep 2023 01:48:48 -0700 Subject: refactor(auth): move to api --- src/routes/authentication/log-out/+server.ts | 7 ------- 1 file changed, 7 deletions(-) delete mode 100644 src/routes/authentication/log-out/+server.ts (limited to 'src/routes/authentication') diff --git a/src/routes/authentication/log-out/+server.ts b/src/routes/authentication/log-out/+server.ts deleted file mode 100644 index 22ef49d8..00000000 --- a/src/routes/authentication/log-out/+server.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { redirect } from '@sveltejs/kit'; - -export const GET = ({ cookies }) => { - cookies.delete('user', { path: '/' }); - - throw redirect(303, '/'); -}; -- cgit v1.2.3