Skip to content

Commit

Permalink
feat: healthcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
Niki2k1 authored Feb 4, 2024
1 parent 609131f commit 86f7cf6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 86f7cf6

Please sign in to comment.