cleanup
This commit is contained in:
@@ -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});
|
||||||
|
|||||||
Reference in New Issue
Block a user