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 username = cookies.get("username"); if (username) { redirect(307, `/${username}/receive`); } redirect(307, "/"); }