Aktueller Stand

This commit is contained in:
2026-01-15 23:18:42 +01:00
parent 46eae2a2a9
commit dcf45bac3d
32 changed files with 2625 additions and 395 deletions

View File

@@ -26,7 +26,9 @@ export async function GET(request: Request) {
const events = await prisma.event.findMany({
where,
orderBy: { startAt: "asc" },
include: { category: true }
include: isAdmin
? { category: true, createdBy: { select: { name: true, email: true } } }
: { category: true }
});
return NextResponse.json(events);