bugfix: renamed endpoint

This commit is contained in:
waltem01 2024-02-15 09:43:38 +01:00
parent 21416fd55a
commit bc37cb3c67

View File

@ -14,7 +14,7 @@ import time, threading
api = Flask(__name__) api = Flask(__name__)
cors = CORS(api) cors = CORS(api)
@api.route('/text', methods=['POST']) @api.route('/upload', methods=['POST'])
@cross_origin() @cross_origin()
def set_image(): def set_image():
# prepare response data # prepare response data
@ -38,7 +38,7 @@ def set_image():
# respond to client # respond to client
return jsonify(response) return jsonify(response)
@api.route('/text', methods=['POST']) @api.route('/image', methods=['POST'])
@cross_origin() @cross_origin()
def display_image(): def display_image():
# prepare response data # prepare response data