WIP: Working homepage with Login and logout
This commit is contained in:
@@ -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}`);
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user