DmitrMakeev commited on
Commit
2c2aa7e
·
verified ·
1 Parent(s): 943ab05

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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 uploaded_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 up_pages():
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