From 86f7cf6a80272dcab8fdfa7c7e86bbb84ae3e391 Mon Sep 17 00:00:00 2001 From: Niklas Lausch Date: Sun, 4 Feb 2024 19:36:07 +0100 Subject: [PATCH] feat: healthcheck --- main.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/main.py b/main.py index 8bc4b93..4941cde 100644 --- a/main.py +++ b/main.py @@ -22,6 +22,9 @@ def api_key_auth(api_key: str = Depends(oauth2_scheme)): app = FastAPI() +@app.get("/healthcheck") +async def health_check(): + return {"status": "UP"} @app.post("/transcribe", dependencies=[Depends(api_key_auth)]) async def transcibe(request: Request):