DmitrMakeev commited on
Commit
9ede144
1 Parent(s): 06829ed

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -10
app.py CHANGED
@@ -110,16 +110,8 @@ def upload_file():
110
  full_url = request.url_root.replace('http://', 'https://') + 'uploads/' + unique_filename
111
  return f"File uploaded successfully and saved to {full_url}", 200
112
 
113
-
114
-
115
-
116
-
117
-
118
-
119
-
120
-
121
- @app.route('/image/<filename>', methods=['GET'])
122
- def get_image(filename):
123
  return send_from_directory(UPLOAD_FOLDER, filename)
124
 
125
  @app.route('/se_mes_im2', methods=['GET'])
 
110
  full_url = request.url_root.replace('http://', 'https://') + 'uploads/' + unique_filename
111
  return f"File uploaded successfully and saved to {full_url}", 200
112
 
113
+ @app.route('/uploads/<filename>', methods=['GET'])
114
+ def uploaded_file(filename):
 
 
 
 
 
 
 
 
115
  return send_from_directory(UPLOAD_FOLDER, filename)
116
 
117
  @app.route('/se_mes_im2', methods=['GET'])