luowuyin's picture
25:05:05 10:41:39 v0.3.7
a572854
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,
});
}