-
This commit is contained in:
parent
1d31f86b20
commit
411f0bd3b6
5
app.py
5
app.py
@ -8,8 +8,6 @@ app = Flask(__name__)
|
|||||||
app.config['UPLOAD_FOLDER'] = "configs/squash"
|
app.config['UPLOAD_FOLDER'] = "configs/squash"
|
||||||
app.config['MAX_CONTENT_LENGTH'] = 1024 * 1024 * 512 #512MB
|
app.config['MAX_CONTENT_LENGTH'] = 1024 * 1024 * 512 #512MB
|
||||||
|
|
||||||
process = subprocess.run(['wssh','--fbidhttp=False'])
|
|
||||||
|
|
||||||
@app.route("/api/addimage", methods=['POST'])
|
@app.route("/api/addimage", methods=['POST'])
|
||||||
def add_image():
|
def add_image():
|
||||||
db.Connect()
|
db.Connect()
|
||||||
@ -63,3 +61,6 @@ def get_image():
|
|||||||
filename = "default.squashfs"
|
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