playmak3r commited on
Commit
ff284fc
1 Parent(s): 92eba1f

fix translation route

Browse files
Files changed (1) hide show
  1. 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')