def register_blueprints(app): from app.api.v1 import create_v1 from app.api.cms import create_cms from app.api.mock import create_mock app.register_blueprint(create_v1(), url_prefix='/v1') app.register_blueprint(create_cms(), url_prefix='/cms') app.register_blueprint(create_mock(), url_prefix='')
def register_blueprints(app): from app.api.v1 import create_v1 from app.api.cms import create_cms from app.api.wx import create_wx app.register_blueprint(create_v1(), url_prefix='/v1') app.register_blueprint(create_cms(), url_prefix='/cms') app.register_blueprint(create_wx(), url_prefix='/wx')
def register_blueprints(app): from app.api.cms import create_cms from app.api.v1 import create_v1 app.register_blueprint(create_v1(), url_prefix="/v1") app.register_blueprint(create_cms(), url_prefix="/cms")
def register_blueprints(app): """ 注册蓝图 """ from app.api.v1 import create_v1 app.register_blueprint(create_v1(), url_prefix='/v1')