Skip to content

Commit c54f3d2

Browse files
committed
add health endpoint
1 parent 74c1fe6 commit c54f3d2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/main.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,10 @@ async def startup_event():
6565
@app.get("/robots.txt", response_class=FileResponse)
6666
async def robots():
6767
return "assets/robots.txt"
68+
69+
@app.get("/health")
70+
async def health():
71+
return {"status": "ok"}
6872

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

0 commit comments

Comments
 (0)