From 19bc1a4184a9268622f0fecf9a8ce9a290764e1f Mon Sep 17 00:00:00 2001 From: "ishak jmilou.ishak" Date: Mon, 4 Nov 2024 10:26:15 +0100 Subject: [PATCH] made get method --- src/Python/flask/web/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Python/flask/web/app.py b/src/Python/flask/web/app.py index f78aed4..e0ff8ab 100644 --- a/src/Python/flask/web/app.py +++ b/src/Python/flask/web/app.py @@ -9,7 +9,7 @@ mqtt_client.username_pw_set("ishak", "kobuki") mqtt_client.connect("localhost", 1883, 60) mqtt_client.loop_start() -@app.route('/', methods=["POST"]) +@app.route('/', methods=["GET","POST"]) def index(): return render_template('index.html')