From d6a008b3535d03def344bc656e2719efa181e614 Mon Sep 17 00:00:00 2001 From: Tiago Ribeiro Date: Tue, 14 Nov 2023 16:32:05 +0000 Subject: [PATCH] Added a simple healthcheck endpoint --- app.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app.py b/app.py index 42bb3ae..b57ee93 100644 --- a/app.py +++ b/app.py @@ -30,6 +30,10 @@ jwt = JWTManager(app) cred = credentials.Certificate(os.getenv("GOOGLE_APPLICATION_CREDENTIALS")) firebase_admin.initialize_app(cred) +@app.route('/healthcheck', methods=['GET']) +def healthcheck(): + return {"healthy": True} + @app.route('/listening_section_1', methods=['GET']) @jwt_required()