From 2abd140dd882c29be2056263050b4cec520cad9b Mon Sep 17 00:00:00 2001 From: Peter Stockings Date: Tue, 24 Dec 2024 23:42:29 +1100 Subject: [PATCH] Add health check endpoint --- app/routes.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/routes.py b/app/routes.py index 731db21..5e053b4 100644 --- a/app/routes.py +++ b/app/routes.py @@ -276,4 +276,8 @@ def export_data(): mimetype='text/csv', as_attachment=True, download_name='readings.csv' - ) \ No newline at end of file + ) + +@main.route('/health') +def health(): + return "OK", 200