Skip to content

Commit eb26934

Browse files
author
Anton Kholodkov
committed
Add /healthcheck probe
1 parent 0a68f63 commit eb26934

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

check.http

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
GET http://localhost:9010/healthcheck

main.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@
1515
app = FastAPI()
1616

1717

18+
@app.get("/healthcheck")
19+
async def healthcheck():
20+
return Response(status_code=200, content="ok", headers={ "Content-Type": "text/plain"})
21+
22+
1823
@app.put("/tika/text")
1924
async def tika(request: Request):
2025

0 commit comments

Comments
 (0)