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