From 0089be40d3d6f20f902e72003a89a17b3c524dd7 Mon Sep 17 00:00:00 2001 From: Sam Hos Date: Thu, 24 Oct 2024 10:22:24 +0000 Subject: [PATCH] flask bugfix --- src/Python/flask/web/app.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Python/flask/web/app.py b/src/Python/flask/web/app.py index 085eba0..3647d55 100644 --- a/src/Python/flask/web/app.py +++ b/src/Python/flask/web/app.py @@ -10,7 +10,7 @@ mqtt_client.username_pw_set("ishak", "kobuki") mqtt_client.connect("localhost", 1883, 60) mqtt_client.loop_start() -@app.route('/') +@app.route('/', methods=["POST"]) def index(): return render_template('index.html') @@ -24,4 +24,4 @@ def move(): return jsonify({"message": "Fout bij het publiceren van bericht"}), 500 if __name__ == '__main__': - app.run(debug=True) \ No newline at end of file + app.run(debug=True)