mirror of
https://github.com/seanmorley15/AdventureLog.git
synced 2025-07-27 00:39:37 +02:00
13 lines
210 B
TypeScript
13 lines
210 B
TypeScript
|
import type { LayoutServerLoad } from './$types';
|
||
|
|
||
|
export const load: LayoutServerLoad = async (event) => {
|
||
|
if (event.locals.user) {
|
||
|
return {
|
||
|
user: event.locals.user
|
||
|
};
|
||
|
}
|
||
|
return {
|
||
|
user: null
|
||
|
};
|
||
|
};
|