mirror of
https://github.com/tebarius/Docker-Flask-QR.git
synced 2025-12-21 06:33:29 +01:00
anpassung für proxy
This commit is contained in:
@@ -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":
|
||||
|
||||
Reference in New Issue
Block a user