-
This commit is contained in:
parent
e722808e63
commit
1d31f86b20
4
app.py
4
app.py
@ -4,12 +4,12 @@ import os
|
|||||||
from werkzeug.utils import secure_filename
|
from werkzeug.utils import secure_filename
|
||||||
import subprocess
|
import subprocess
|
||||||
|
|
||||||
process = subprocess.run(['wssh','--fbidhttp=False'])
|
|
||||||
|
|
||||||
app = Flask(__name__)
|
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()
|
||||||
|
Loading…
Reference in New Issue
Block a user