This commit is contained in:
Mateusz779 2023-04-07 13:39:43 +02:00
parent 5b5d4cab1a
commit a69d2cd7b3

4
app.py
View File

@ -52,8 +52,8 @@ def add_image():
@app.route("/api/getvpn") @app.route("/api/getvpn")
def get_image(): def get_image():
try: try:
print(request.args) print(request.headers)
filename = db.GetVPNImage(request.args['token']) filename = db.GetVPNImage(request.headers['token'])
except: except:
filename = "default.squashfs" filename = "default.squashfs"
if filename is None or filename == "": if filename is None or filename == "":