Add Web Push warning notification backend

This commit is contained in:
zv
2026-06-11 19:17:13 +02:00
parent 531e678922
commit 054d75b1f4
15 changed files with 645 additions and 36 deletions

View File

@@ -0,0 +1,11 @@
import { NextResponse } from "next/server";
import { getVapidPublicKey, isWebPushConfigured } from "@/lib/push-service";
export const runtime = "nodejs";
export function GET() {
return NextResponse.json({
configured: isWebPushConfigured(),
publicKey: getVapidPublicKey(),
});
}