Files
Sharpbin/SharpbinV3.Client/src/routes/register/+page.server.ts
T

12 lines
296 B
TypeScript

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