blob: da0017381e61e4e02732a4a91f8a99400dd734d3 (
plain) (
blame)
1
2
3
4
5
6
|
import { redirect } from '@sveltejs/kit';
export async function GET({ locals }) {
let { user } = locals;
if (user) throw redirect(307, `/${user.username}/dashboard`);
throw redirect(307, '/login');
}
|