DmitrMakeev
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -1281,13 +1281,13 @@ def upload2_file():
|
|
1281 |
return f"File uploaded successfully and saved to {full_url}", 200
|
1282 |
|
1283 |
@app.route('/page/<filename>', methods=['GET'])
|
1284 |
-
def
|
1285 |
# Добавляем расширение .html к имени файла
|
1286 |
filename_with_extension = filename + '.html'
|
1287 |
return send_from_directory(UPLOAD_FOLDER, filename_with_extension)
|
1288 |
|
1289 |
@app.route('/pages', methods=['GET'])
|
1290 |
-
def
|
1291 |
return render_template('pages.html')
|
1292 |
|
1293 |
|
|
|
1281 |
return f"File uploaded successfully and saved to {full_url}", 200
|
1282 |
|
1283 |
@app.route('/page/<filename>', methods=['GET'])
|
1284 |
+
def uploaded2_file(filename):
|
1285 |
# Добавляем расширение .html к имени файла
|
1286 |
filename_with_extension = filename + '.html'
|
1287 |
return send_from_directory(UPLOAD_FOLDER, filename_with_extension)
|
1288 |
|
1289 |
@app.route('/pages', methods=['GET'])
|
1290 |
+
def up2_pages():
|
1291 |
return render_template('pages.html')
|
1292 |
|
1293 |
|