Aktueller Stand

This commit is contained in:
2026-01-16 23:07:13 +01:00
parent b2b23268b2
commit b81af0f6c6
3 changed files with 95 additions and 32 deletions

View File

@@ -0,0 +1,10 @@
import { NextResponse } from "next/server";
import { prisma } from "../../../../lib/prisma";
export async function GET() {
const setting = await prisma.setting.findUnique({
where: { key: "registration_enabled" }
});
const registrationEnabled = setting?.value !== "false";
return NextResponse.json({ registrationEnabled });
}