Skip to content

Commit fb9e917

Browse files
TiZoriiViktorSvertoka
authored andcommitted
feat(api): add GET health check endpoint for ai-explain
1 parent 946b685 commit fb9e917

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

frontend/app/api/ai/explain/route.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -328,3 +328,17 @@ export async function POST(request: NextRequest) {
328328
);
329329
}
330330
}
331+
332+
export async function GET() {
333+
return NextResponse.json(
334+
{
335+
status: 'ok',
336+
service: 'ai-explain',
337+
env: {
338+
hasGroqKey: !!process.env.GROQ_API_KEY,
339+
nodeEnv: process.env.NODE_ENV,
340+
},
341+
},
342+
{ status: 200 }
343+
);
344+
}

0 commit comments

Comments
 (0)