From 895574dbbcc2b7c29c948a56f738b4a1ff5aaa0f Mon Sep 17 00:00:00 2001 From: Nik Afiq Date: Sun, 23 Nov 2025 21:39:29 +0900 Subject: [PATCH] Added health endpoint --- app.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/app.py b/app.py index b466b35..64794ac 100644 --- a/app.py +++ b/app.py @@ -190,5 +190,13 @@ def get_speakers(): logger.info(f"Sending speaker list for search term: '{search}' with {len(speaker_list)} results.") return jsonify(speaker_list) +@app.route('/health', methods=['GET']) +def health_check(): + """ + Health check endpoint to verify that the server is running. + """ + logger.info("Health check requested.") + return jsonify({'status': 'ok'}) + if __name__ == '__main__': app.run(host='0.0.0.0', port=18343)