Spaces:
Sleeping
Sleeping
| import { NextResponse } from "next/server"; | |
| import { verifyApiToken } from "@/lib/auth"; | |
| export async function GET(req: Request) { | |
| const authError = verifyApiToken(req); | |
| if (authError) { | |
| return authError; | |
| } | |
| return NextResponse.json({ | |
| apiKey: process.env.API_KEY || "Unconfigured", | |
| status: 200, | |
| }); | |
| } | |