Add slots based per class, admin courses mgmt, admin roles, horizontal nav/landing, glove favicon

This commit is contained in:
Wycz
2026-09-08 09:10:37 +02:00
parent 3f4fdeba99
commit 7556b2cd97
15 changed files with 439 additions and 74 deletions
+13
View File
@@ -0,0 +1,13 @@
import { NextResponse } from "next/server";
import { prisma } from "@/lib/prisma";
export async function GET() {
try {
const slots = await prisma.classSlot.findMany({
orderBy: { label: "asc" },
});
return NextResponse.json(slots);
} catch {
return NextResponse.json({ error: "Erreur" }, { status: 500 });
}
}