Skip to content

Commit

Permalink
[+] Add health check
Browse files Browse the repository at this point in the history
  • Loading branch information
hykilpikonna authored Aug 7, 2024
1 parent cbb5be6 commit d64c2d2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions back/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,11 @@ class PendingProcess(NamedTuple):
file: Path


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


@app.post("/upload")
async def upload(file: UploadFile = File(...)):
try:
Expand Down

0 comments on commit d64c2d2

Please sign in to comment.