made get method

This commit is contained in:
ishak jmilou.ishak
2024-11-04 10:26:15 +01:00
parent b8b61df756
commit 19bc1a4184

View File

@@ -9,7 +9,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('/', methods=["POST"]) @app.route('/', methods=["GET","POST"])
def index(): def index():
return render_template('index.html') return render_template('index.html')