This commit is contained in:
Mateusz779 2023-04-12 15:49:46 +02:00
parent e722808e63
commit 1d31f86b20

4
app.py
View File

@ -4,12 +4,12 @@ import os
from werkzeug.utils import secure_filename
import subprocess
process = subprocess.run(['wssh','--fbidhttp=False'])
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()