Initial, working login and logout with spotify

This commit is contained in:
Pablu23
2025-09-02 14:20:05 +02:00
commit 24b4647ab3
33 changed files with 5919 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
import { db } from "$lib/server/db";
import { usersTable } from "$lib/server/db/schema";
import type { PageServerLoad } from "./$types";
export const load: PageServerLoad = async ({ locals }) => {
const allUsers = await db.select().from(usersTable);
return {
user: locals.user,
users: allUsers
}
};