add project
This commit is contained in:
6
src/routes/+layout.server.ts
Normal file
6
src/routes/+layout.server.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
import type { LayoutServerLoad } from './$types';
|
||||
import { getSession } from '$lib/server/auth';
|
||||
|
||||
export const load: LayoutServerLoad = ({ cookies }) => {
|
||||
return { loggedIn: getSession(cookies) };
|
||||
};
|
||||
Reference in New Issue
Block a user