Merge branch 'test_script_movement' of ssh://gitlab.fdmci.hva.nl/technische-informatica-sm3/ti-projectten/rooziinuubii79 into test_script_movement

This commit is contained in:
ishak jmilou.ishak
2024-10-24 13:23:38 +02:00
12 changed files with 58 additions and 26 deletions

View File

@@ -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)
app.run(debug=True)