Skip to content

Commit

Permalink
WIP Update server hook
Browse files Browse the repository at this point in the history
  • Loading branch information
daniellrgn committed Jan 30, 2025
1 parent f27745e commit 3c7972f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/hooks.server.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { redirect, type Handle } from '@sveltejs/kit';

const public_paths = [
'/',
'/home',
'/ips'
];
Expand All @@ -23,7 +22,7 @@ export const handle: Handle = async ({ event, resolve }) => {
}

if (!authorized && !isPathAllowed(event.url.pathname)) {
throw redirect(302, '/');
throw redirect(302, '/home');
}

const response = await resolve(event);
Expand Down

0 comments on commit 3c7972f

Please sign in to comment.