def register_routes(app):
    from . import controllers
    from flask.blueprints import Blueprint

    for module in _import_submodules_from_package(controllers):
        bp = getattr(module, 'bp')
        if bp and isinstance(bp, Blueprint):
            app.register_blueprint(bp)
Register routes.
dataset/ETHPy150Open Akagi201/learning-python/flask/flask-boost/test/application/__init__.py/register_routes