diff --git a/API/main.py b/API/main.py index 14302db..d28ad35 100755 --- a/API/main.py +++ b/API/main.py @@ -14,7 +14,7 @@ import time, threading api = Flask(__name__) cors = CORS(api) -@api.route('/text', methods=['POST']) +@api.route('/upload', methods=['POST']) @cross_origin() def set_image(): # prepare response data @@ -38,7 +38,7 @@ def set_image(): # respond to client return jsonify(response) -@api.route('/text', methods=['POST']) +@api.route('/image', methods=['POST']) @cross_origin() def display_image(): # prepare response data