aboutsummaryrefslogtreecommitdiffstats
path: root/src/routes/start/+server.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/routes/start/+server.js')
-rw-r--r--src/routes/start/+server.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/routes/start/+server.js b/src/routes/start/+server.js
new file mode 100644
index 00000000..e5d93497
--- /dev/null
+++ b/src/routes/start/+server.js
@@ -0,0 +1,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, "/");
+}