This commit is contained in:
headlesdev
2025-05-17 11:53:16 +02:00
parent 64b5b5e1c4
commit 5f824a2581
318 changed files with 0 additions and 54608 deletions

View File

@@ -1,21 +0,0 @@
import { NextResponse, NextRequest } from "next/server";
import { prisma } from "@/lib/prisma";
export async function POST(request: NextRequest) {
try {
const body = await request.json();
const id = Number(body.id);
if (!id) {
return NextResponse.json({ error: "Missing ID" }, { status: 400 });
}
await prisma.notification.delete({
where: { id: id }
});
return NextResponse.json({ success: true });
} catch (error: any) {
return NextResponse.json({ error: error.message }, { status: 500 });
}
}