fix translation route
Browse files- server/app.py +1 -1
server/app.py
CHANGED
@@ -19,7 +19,7 @@ def download_file(filename):
|
|
19 |
def download_assets(filename):
|
20 |
return send_from_directory('dist/assets', filename)
|
21 |
|
22 |
-
@app.route('api/translate', methods= ['POST'])
|
23 |
@cross_origin()
|
24 |
def translate_api():
|
25 |
text = request.args.get('text')
|
|
|
19 |
def download_assets(filename):
|
20 |
return send_from_directory('dist/assets', filename)
|
21 |
|
22 |
+
@app.route('/api/translate', methods= ['POST'])
|
23 |
@cross_origin()
|
24 |
def translate_api():
|
25 |
text = request.args.get('text')
|