From 0a9f1e2029c2caaa986f3e45af27a05ced639752 Mon Sep 17 00:00:00 2001 From: Michael Hansen Date: Thu, 12 May 2022 18:23:11 -0400 Subject: [PATCH] Add /api/healthcheck --- mimic3_http/app.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/mimic3_http/app.py b/mimic3_http/app.py index e9fc8b0..8ca1c73 100644 --- a/mimic3_http/app.py +++ b/mimic3_http/app.py @@ -295,6 +295,11 @@ def get_app(args: argparse.Namespace, request_queue: Queue, temp_dir: str): return Response(wav_bytes, mimetype="audio/wav") + @app.route("/api/healthcheck", methods=["GET"]) + async def api_healthcheck(): + """Endpoint to check health status""" + return "OK" + # Swagger UI show_openapi = not args.no_show_openapi if show_openapi: