This commit is contained in:
2025-01-13 12:46:02 +01:00
parent 7e1a558ee0
commit 9dd8ab1dd6
+2 -1
View File
@@ -19,7 +19,8 @@ export async function GET() {
} }
// post function for updating the config // post function for updating the config
export async function POST({body}) { export async function POST(req: Request) {
const body = await req.json();
if (writeLock) { if (writeLock) {
return NextResponse.json({error: "Write lock is active"}, {status: 400}); return NextResponse.json({error: "Write lock is active"}, {status: 400});