peak search, denser catalog, profiles, filename parsing, themed map controls
This commit is contained in:
+7
-1
@@ -4,7 +4,13 @@ import { validateSession } from '$lib/server/auth';
|
||||
const AUTH_PATHS = new Set(['/login', '/signup']);
|
||||
|
||||
function isPublic(path: string): boolean {
|
||||
return path === '/' || AUTH_PATHS.has(path) || /^\/activities\/\d+$/.test(path);
|
||||
return (
|
||||
path === '/' ||
|
||||
AUTH_PATHS.has(path) ||
|
||||
/^\/activities\/\d+$/.test(path) ||
|
||||
path.startsWith('/users/') ||
|
||||
path.startsWith('/avatars/')
|
||||
);
|
||||
}
|
||||
|
||||
export const handle: Handle = async ({ event, resolve }) => {
|
||||
|
||||
Reference in New Issue
Block a user