Skip to content

Commit

Permalink
Add health check (#52)
Browse files Browse the repository at this point in the history
* Add health check

Closes #49
  • Loading branch information
alukach authored Sep 11, 2024
1 parent 8d1cd7a commit 24034e0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions space2stats_api/src/space2stats/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,3 +71,8 @@ def fields(request: Request):
@app.get("/")
def read_root():
return {"message": "Welcome to Space2Stats!"}


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

0 comments on commit 24034e0

Please sign in to comment.