Update server.py

This commit is contained in:
Nova Cat 2025-01-14 20:38:09 -08:00
parent b41d980907
commit 55eb92c9a1

View file

@ -26,7 +26,7 @@ def loadcert():
def allowed_file(filename):
return '.' in filename and filename.rsplit('.', 1)[1].lower() == "pem"
@app.route("/certload", methods=['GET', 'POST'])
def loadcert():
def loadcert_backend():
if request.method == 'POST':
if 'cert' not in request.files:
return "Invalid request. (cert is missing!)"