anpassung für proxy

This commit is contained in:
2023-11-13 15:55:55 +01:00
parent 283941aeb9
commit 4107a930b6
6 changed files with 48 additions and 30 deletions

View File

@@ -4,7 +4,7 @@
from flask import Flask, render_template, request
from flask_qrcode import QRcode
app = Flask(__name__)
app = Flask(__name__, static_folder='qr-static')
QRcode(app)
@@ -13,6 +13,11 @@ def index():
return render_template('index.html')
@app.route("/index.html")
def index_html():
return render_template('index.html')
@app.route("/text.html")
def text():
return render_template('text.html')
@@ -69,6 +74,7 @@ def makeqr():
elif request.args.get('type') == "tel":
data = f"tel:{request.args.get('tel')}"
elif request.args.get('type') == "geo":
data = "GEO:"
if request.args.get('ns') == "S":