diff --git a/src/Python/flask/web/app.py b/src/Python/flask/web/app.py index 60741f8..3393168 100644 --- a/src/Python/flask/web/app.py +++ b/src/Python/flask/web/app.py @@ -57,6 +57,10 @@ def control(): else: return ('Unauthorized', 401, {'WWW-Authenticate': 'Basic realm="Login Required"'}) +@app.route('/data', methods=['GET']) +def data(): + return kobuki_message + @app.route('/move', methods=['POST']) def move(): data = request.get_json() @@ -77,10 +81,6 @@ def move(): return jsonify({"status": "success", "direction": direction}) -@app.route('/data', methods=['GET']) -def data(): - return kobuki_message - @app.route("/database") def database(): db = get_db()