Revised the routes in the examples in README.rst.
This commit is contained in:
parent
cb5cfaf7d4
commit
65c3322ecc
@ -133,7 +133,7 @@ In your ``my_app/views.py``:
|
|||||||
|
|
||||||
bp = Blueprint("admin", __name__, url_prefix="/admin")
|
bp = Blueprint("admin", __name__, url_prefix="/admin")
|
||||||
|
|
||||||
@bp.get("/")
|
@bp.get("/admin")
|
||||||
@auth.login_required
|
@auth.login_required
|
||||||
def admin():
|
def admin():
|
||||||
... (Process the view) ...
|
... (Process the view) ...
|
||||||
@ -241,7 +241,7 @@ In your ``my_app/views.py``:
|
|||||||
|
|
||||||
bp = Blueprint("admin", __name__, url_prefix="/admin")
|
bp = Blueprint("admin", __name__, url_prefix="/admin")
|
||||||
|
|
||||||
@bp.get("/")
|
@bp.get("/admin")
|
||||||
@flask_login.login_required
|
@flask_login.login_required
|
||||||
def admin():
|
def admin():
|
||||||
... (Process the view) ...
|
... (Process the view) ...
|
||||||
|
Loading…
Reference in New Issue
Block a user