From 51b72a4c483480bc173aeb8b0f21430df02d30d2 Mon Sep 17 00:00:00 2001 From: git Date: Mon, 22 Feb 2021 09:57:26 +0100 Subject: [PATCH] added monitoring endpoint --- src/app.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/app.py b/src/app.py index 6de38b4..aae53c1 100644 --- a/src/app.py +++ b/src/app.py @@ -34,6 +34,11 @@ def notify(config, message, var): return +@app.route('/', methods=['GET']) +def statuscheck(): + return jsonify(result=1) + + @app.route('/wakeup', methods=['POST']) def wakeup(): if verifyapikey(request.values['apikey'], config): @@ -52,5 +57,5 @@ def wakeup(): if __name__ == '__main__': config = configparser.ConfigParser(interpolation=None) - config.read('../config.ini') + config.read('src/config.ini') app.run(host='0.0.0.0') \ No newline at end of file