Skip to content

Commit

Permalink
add health endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
etwk committed Aug 2, 2024
1 parent 74c1fe6 commit c54f3d2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,10 @@ async def startup_event():
@app.get("/robots.txt", response_class=FileResponse)
async def robots():
return "assets/robots.txt"

@app.get("/health")
async def health():
return {"status": "ok"}

@app.get("/{path:path}", response_class=PlainTextResponse)
async def catch_all(path: str):
Expand Down

0 comments on commit c54f3d2

Please sign in to comment.