From 0dba5f3d93eaf83ba690da23b9b5942b2fe434c5 Mon Sep 17 00:00:00 2001 From: Sam Hos Date: Tue, 1 Oct 2024 16:35:45 +0200 Subject: [PATCH] Added endpoint for controlling kobuki --- src/Python/flask/web/app.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/Python/flask/web/app.py b/src/Python/flask/web/app.py index 5ea7260..5b555b0 100644 --- a/src/Python/flask/web/app.py +++ b/src/Python/flask/web/app.py @@ -6,5 +6,12 @@ app = Flask(__name__) def index(): return render_template('index.html') +@app.route('/control', methods=['POST']) +def control(): + return("hello") + + if __name__ == '__main__': - app.run(debug=True) \ No newline at end of file + app.run(debug=True) + +