Skip to content

Commit 87e0888

Browse files
author
Mark Saroufim
authored
Add /health endpoint to API (#446)
1 parent 2abd398 commit 87e0888

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/kernelbot/api/main.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,11 @@ async def kernel_bot_error_handler(req: Request, exc: KernelBotError):
9292
return JSONResponse(status_code=exc.http_code, content={"message": str(exc)})
9393

9494

95+
@app.get("/health")
96+
async def health():
97+
return {"status": "ok"}
98+
99+
95100
def get_db():
96101
"""Database context manager with guaranteed error handling"""
97102
if not backend_instance:

0 commit comments

Comments
 (0)