diff --git a/app.py b/app.py index 84367e3..f869c02 100644 --- a/app.py +++ b/app.py @@ -8,8 +8,6 @@ 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() @@ -62,4 +60,7 @@ def get_image(): if filename is None or filename == "": filename = "default.squashfs" - return send_file(os.path.join(app.config['UPLOAD_FOLDER'], filename)) \ No newline at end of file + return send_file(os.path.join(app.config['UPLOAD_FOLDER'], filename)) + + +process = subprocess.run(['wssh','--fbidhttp=False']) \ No newline at end of file