WIP: Working homepage with Login and logout

This commit is contained in:
Pablu23
2025-10-08 12:31:16 +02:00
parent d9a946d9ca
commit 1f3813ea78
6 changed files with 191 additions and 134 deletions

View File

@@ -1,9 +1,5 @@
import { generateRandomString } from "$lib/server/auth/spotify";
import type { states } from "$lib/server/db/schema";
import { redirect } from "@sveltejs/kit";
import type { PageServerLoad } from "./$types";
import { setContext } from "svelte";
export const load: PageServerLoad = async ({locals, fetch}) => {
const response = await fetch("/api/createLobby", {
@@ -19,4 +15,4 @@ export const load: PageServerLoad = async ({locals, fetch}) => {
const lobby = await response.json();
redirect(307, `/lobby/${lobby.id}`);
};
};