Added the base account detail page that shows its descendant accounts.

This commit is contained in:
2023-02-01 16:54:45 +08:00
parent cb0dea58f1
commit 9b22331a5a
6 changed files with 121 additions and 8 deletions

View File

@ -27,6 +27,9 @@ def init_app(app: Flask, bp: Blueprint) -> None:
:param app: The Flask application.
:return: None.
"""
from .converters import BaseAccountConverter
app.url_map.converters["baseAccount"] = BaseAccountConverter
from .views import bp as base_account_bp
bp.register_blueprint(base_account_bp, url_prefix="/base-accounts")