DmitrMakeev commited on
Commit
4484756
·
verified ·
1 Parent(s): c9af98b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -1197,7 +1197,7 @@ def upload_file():
1197
  file.save(save_path)
1198
 
1199
  # Возвращаем полный URL загруженного файла с протоколом https
1200
- full_url = request.url_root.replace('http://', 'https://') + 'uploads/' + filename + '.html'
1201
  return f"File uploaded successfully and saved to {full_url}", 200
1202
 
1203
  @app.route('/page/<filename>', methods=['GET'])
 
1197
  file.save(save_path)
1198
 
1199
  # Возвращаем полный URL загруженного файла с протоколом https
1200
+ full_url = request.url_root.replace('http://', 'https://') + 'page/' + filename + '.html'
1201
  return f"File uploaded successfully and saved to {full_url}", 200
1202
 
1203
  @app.route('/page/<filename>', methods=['GET'])