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')