From 24034e0dce8ff29c425b50a167dd792f88aad239 Mon Sep 17 00:00:00 2001 From: Anthony Lukach Date: Wed, 11 Sep 2024 08:11:14 -0700 Subject: [PATCH] Add health check (#52) * Add health check Closes #49 --- space2stats_api/src/space2stats/app.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/space2stats_api/src/space2stats/app.py b/space2stats_api/src/space2stats/app.py index 50b34ed..53bc951 100644 --- a/space2stats_api/src/space2stats/app.py +++ b/space2stats_api/src/space2stats/app.py @@ -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"}