Spaces:
Runtime error
Runtime error
add url
Browse files
ice_breaking_challenge/__init__.py
CHANGED
@@ -53,5 +53,6 @@ def create_app(test_config=None):
|
|
53 |
# app.route, while giving the blog blueprint a url_prefix, but for
|
54 |
# the tutorial the blog will be the main index
|
55 |
app.add_url_rule("/", endpoint="index")
|
|
|
56 |
|
57 |
return app
|
|
|
53 |
# app.route, while giving the blog blueprint a url_prefix, but for
|
54 |
# the tutorial the blog will be the main index
|
55 |
app.add_url_rule("/", endpoint="index")
|
56 |
+
app.add_url_rule("/qr", endpoint="qr")
|
57 |
|
58 |
return app
|
ice_breaking_challenge/qr.py
CHANGED
@@ -15,7 +15,7 @@ from .db import get_db
|
|
15 |
bp = Blueprint("qr", __name__)
|
16 |
|
17 |
|
18 |
-
@bp.route("/", methods=["GET", "POST"])
|
19 |
def qr() -> None:
|
20 |
match request.method:
|
21 |
case "GET":
|
|
|
15 |
bp = Blueprint("qr", __name__)
|
16 |
|
17 |
|
18 |
+
@bp.route("/qr", methods=["GET", "POST"])
|
19 |
def qr() -> None:
|
20 |
match request.method:
|
21 |
case "GET":
|