-
This commit is contained in:
parent
1d31f86b20
commit
411f0bd3b6
7
app.py
7
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))
|
||||
return send_file(os.path.join(app.config['UPLOAD_FOLDER'], filename))
|
||||
|
||||
|
||||
process = subprocess.run(['wssh','--fbidhttp=False'])
|
Loading…
Reference in New Issue
Block a user