Monitoring Settings API Routes

This commit is contained in:
headlesdev
2025-05-26 00:34:12 +02:00
parent eab0b76739
commit d045aad2dd
14 changed files with 673 additions and 89 deletions

View File

@@ -0,0 +1,11 @@
import { NextRequest, NextResponse } from "next/server";
import prisma from "@/app/prisma";
export async function GET(request: NextRequest) {
try {
const notification = await prisma.serverMonitoringNotification.findFirst();
return NextResponse.json({ notification }, { status: 200 });
} catch (error) {
return NextResponse.json({ error: "Failed to get server monitoring notification" }, { status: 500 });
}
}