aboutsummaryrefslogtreecommitdiffstats
path: root/lib/sync.js
Path not found
ref='/coinos-ui.git/tree/?id=02a5f0973ea6f0dbf5688fc6242e81f7aac878fc'>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, "/");
}