aboutsummaryrefslogtreecommitdiffstats
path: root/src/routes/start/+server.js
blob: e5d93497f4337cf5cf08310d77313d616f9fe137 (plain) (blame)
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) {
    throw redirect(307, `/${username}/receive`);
  }

  throw redirect(307, "/");
}