1 2 3 4 5 6 7 8 9 10 11
import { auth, get } from "$lib/utils"; import { redirect } from "@sveltejs/kit"; export async function GET({ cookies }) { let user = cookies.get("user"); if (user) { throw redirect(307, `/${user}/receive`); } throw redirect(307, "/"); }