From a195bdbcca3ade1836f117cc551cee0ec99544e0 Mon Sep 17 00:00:00 2001 From: Chris Lee Date: Mon, 4 Nov 2024 20:27:05 +1100 Subject: [PATCH] feat: add status endpoint for tradingview --- tradingview/main.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tradingview/main.py b/tradingview/main.py index 3842c5ad..0085724e 100644 --- a/tradingview/main.py +++ b/tradingview/main.py @@ -48,6 +48,9 @@ def index(): logger.info("Response: "+str(response)) return jsonify(response) +@app.route('/status', methods=['GET']) +def status(): + return jsonify({'status': 'ok'}) if __name__ == "__main__": from waitress import serve