You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
iTi-Flask/iti/applications/routes/sys/__init__.py

26 lines
799 B
Python

from apiflask import APIBlueprint
from .auth import bp as auth_bp
from .log import bp as log_bp
from .user import bp as user_bp
from .role import bp as role_bp
from .config import bp as config_bp
from .dict import bp as dict_bp
from .menu import bp as menu_bp
from .dept import bp as dept_bp
from .file import bp as file_bp
def register_sys_bp(app):
sys_bp = APIBlueprint("sys", __name__, url_prefix="/sys")
sys_bp.register_blueprint(log_bp)
sys_bp.register_blueprint(user_bp)
sys_bp.register_blueprint(role_bp)
sys_bp.register_blueprint(config_bp)
sys_bp.register_blueprint(dict_bp)
sys_bp.register_blueprint(menu_bp)
sys_bp.register_blueprint(dept_bp)
sys_bp.register_blueprint(file_bp)
app.register_blueprint(sys_bp)
app.register_blueprint(auth_bp)