From 9dd8ab1dd6cc6a84ad2da1d0f806705a96cd5f4c Mon Sep 17 00:00:00 2001 From: Alex Blank Date: Mon, 13 Jan 2025 12:46:02 +0100 Subject: [PATCH] cleanup --- src/app/api/config/route.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/app/api/config/route.ts b/src/app/api/config/route.ts index fb79584..963f9e8 100644 --- a/src/app/api/config/route.ts +++ b/src/app/api/config/route.ts @@ -19,7 +19,8 @@ export async function GET() { } // post function for updating the config -export async function POST({body}) { +export async function POST(req: Request) { + const body = await req.json(); if (writeLock) { return NextResponse.json({error: "Write lock is active"}, {status: 400});