Revised the routes in the examples in README.rst.

This commit is contained in:
依瑪貓 2022-11-25 08:41:30 +11:00
parent cb5cfaf7d4
commit 65c3322ecc

View File

@ -133,7 +133,7 @@ In your ``my_app/views.py``:
bp = Blueprint("admin", __name__, url_prefix="/admin")
@bp.get("/")
@bp.get("/admin")
@auth.login_required
def admin():
... (Process the view) ...
@ -241,7 +241,7 @@ In your ``my_app/views.py``:
bp = Blueprint("admin", __name__, url_prefix="/admin")
@bp.get("/")
@bp.get("/admin")
@flask_login.login_required
def admin():
... (Process the view) ...