mirror of
https://github.com/BradNut/boredgame
synced 2025-09-08 17:40:22 +00:00
10 lines
248 B
TypeScript
10 lines
248 B
TypeScript
|
|
import { loadFlash } from 'sveltekit-flash-message/server';
|
||
|
|
import type { LayoutServerLoad } from '../$types';
|
||
|
|
|
||
|
|
export const load: LayoutServerLoad = loadFlash(async ({ url, locals }) => {
|
||
|
|
return {
|
||
|
|
url: url.pathname,
|
||
|
|
user: locals.user
|
||
|
|
};
|
||
|
|
});
|