We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2abd398 commit 87e0888Copy full SHA for 87e0888
1 file changed
src/kernelbot/api/main.py
@@ -92,6 +92,11 @@ async def kernel_bot_error_handler(req: Request, exc: KernelBotError):
92
return JSONResponse(status_code=exc.http_code, content={"message": str(exc)})
93
94
95
+@app.get("/health")
96
+async def health():
97
+ return {"status": "ok"}
98
+
99
100
def get_db():
101
"""Database context manager with guaranteed error handling"""
102
if not backend_instance:
0 commit comments