Files
wtr/app/api/notifications/vapid-key/route.ts

12 lines
292 B
TypeScript

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(),
});
}