mirror of
https://github.com/crocofied/CoreControl.git
synced 2025-12-20 00:46:47 +00:00
11 lines
403 B
TypeScript
11 lines
403 B
TypeScript
import { NextRequest, NextResponse } from "next/server";
|
|
import prisma from "@/app/prisma";
|
|
|
|
export async function GET(request: NextRequest) {
|
|
try {
|
|
const notifications = await prisma.notificationProvider.findMany();
|
|
return NextResponse.json({ notifications });
|
|
} catch (error: any) {
|
|
return NextResponse.json({ error: "Internal Server Error" }, { status: 500 });
|
|
}
|
|
} |