Files
classquiz-ai/frontend/src/routes/account/register/+page.server.ts
T
2022-08-18 17:07:02 +02:00

10 lines
187 B
TypeScript

import { redirect } from '@sveltejs/kit';
export async function load({ parent }) {
const { email } = await parent();
if (email) {
throw redirect(302, '/dashboard');
}
return {};
}