This commit is contained in:
Mateusz779 2023-04-12 15:50:21 +02:00
parent 1d31f86b20
commit 411f0bd3b6

7
app.py
View File

@ -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))
return send_file(os.path.join(app.config['UPLOAD_FOLDER'], filename))
process = subprocess.run(['wssh','--fbidhttp=False'])