aboutsummaryrefslogtreecommitdiffstats
path: root/src/routes/start/+server.js
blob: c351df7053379c013e7a84b5a783877134245b69 (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 user = cookies.get("user");
  if (user) {
    throw redirect(307, `/${user}/receive`);
  }

  throw redirect(307, "/");
}