flask bugfix

This commit is contained in:
2024-10-24 10:22:24 +00:00
parent c84c0d2cef
commit 0089be40d3

View File

@@ -10,7 +10,7 @@ mqtt_client.username_pw_set("ishak", "kobuki")
mqtt_client.connect("localhost", 1883, 60) mqtt_client.connect("localhost", 1883, 60)
mqtt_client.loop_start() mqtt_client.loop_start()
@app.route('/') @app.route('/', methods=["POST"])
def index(): def index():
return render_template('index.html') return render_template('index.html')