diff --git a/app.py b/app.py index a676fb3..84367e3 100644 --- a/app.py +++ b/app.py @@ -4,12 +4,12 @@ import os from werkzeug.utils import secure_filename import subprocess -process = subprocess.run(['wssh','--fbidhttp=False']) - app = Flask(__name__) app.config['UPLOAD_FOLDER'] = "configs/squash" app.config['MAX_CONTENT_LENGTH'] = 1024 * 1024 * 512 #512MB +process = subprocess.run(['wssh','--fbidhttp=False']) + @app.route("/api/addimage", methods=['POST']) def add_image(): db.Connect()