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});