DmitrMakeev
commited on
Update app.py
Browse files
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://') + '
|
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'])
|