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

  redirect(307, "/");
}