9 lines
245 B
TypeScript
9 lines
245 B
TypeScript
import { NextResponse } from "next/server";
|
|
import { getBackend } from "@/lib/backend";
|
|
|
|
export const dynamic = "force-dynamic";
|
|
|
|
export async function GET() {
|
|
return NextResponse.json({ notifications: await getBackend().notifications() });
|
|
}
|