Files
Sharpbin/SharpbinV3.Client/src/routes/+layout.server.ts
T
whoswhip 1f4fda1a16 fix: resolve lint issues
chore: npm run format
2026-01-07 09:54:27 -05:00

12 lines
302 B
TypeScript

import type { LayoutServerLoad } from './$types';
export const load: LayoutServerLoad = async ({ fetch, url }) => {
try {
const res = await fetch('/api/auth/info');
const options = await res.json();
return { options, url: url.href };
} catch {
return { options: null, url: url.href };
}
};