Added the "accounting.utils.next_uri" utilities to fixed how the next URI works.

This commit is contained in:
2023-02-01 16:30:02 +08:00
parent 2964f206a6
commit 241ad337c8
6 changed files with 101 additions and 13 deletions

View File

@ -106,4 +106,9 @@ def init_app(app: Flask, user_utils: AbstractUserUtils,
from . import account
account.init_app(app, bp)
from .utils.next_url import append_next, inherit_next, or_next
bp.add_app_template_filter(append_next, "append_next")
bp.add_app_template_filter(inherit_next, "inherit_next")
bp.add_app_template_filter(or_next, "or_next")
app.register_blueprint(bp)