From 07e4b9090e4c014c92d6039311c8ece1a844bd13 Mon Sep 17 00:00:00 2001 From: Mark Saroufim Date: Wed, 11 Feb 2026 16:34:41 -0800 Subject: [PATCH] Add /health endpoint to API --- src/kernelbot/api/main.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/kernelbot/api/main.py b/src/kernelbot/api/main.py index 78c22f0b..62938b70 100644 --- a/src/kernelbot/api/main.py +++ b/src/kernelbot/api/main.py @@ -92,6 +92,11 @@ async def kernel_bot_error_handler(req: Request, exc: KernelBotError): return JSONResponse(status_code=exc.http_code, content={"message": str(exc)}) +@app.get("/health") +async def health(): + return {"status": "ok"} + + def get_db(): """Database context manager with guaranteed error handling""" if not backend_instance: