mirror of
https://gitlab1.ptb.de/waltem01/Matrix
synced 2024-11-14 00:43:50 +00:00
bugfix: renamed endpoint
This commit is contained in:
parent
21416fd55a
commit
bc37cb3c67
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user