12 lines
292 B
TypeScript
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(),
|
|
});
|
|
}
|