feat(project): init
This commit is contained in:
13
app/api/health/route.ts
Normal file
13
app/api/health/route.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
import { NextResponse } from "next/server";
|
||||
import { appConfig } from "@/lib/config";
|
||||
|
||||
export const runtime = "nodejs";
|
||||
|
||||
export async function GET() {
|
||||
return NextResponse.json({
|
||||
ok: true,
|
||||
configured: Boolean(appConfig.openAiApiKey),
|
||||
model: appConfig.openAiImageModel,
|
||||
timeoutMs: appConfig.openAiTimeoutMs,
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user