Python api 模块,api() 实例源码

我们从Python开源项目中,提取了以下2个代码示例,用于说明如何使用api.api()

项目:bandit-http-server    作者:evancasey    | 项目源码 | 文件源码
def configure_blueprints(app):
    from api import api
    from lib import errors
    app.register_blueprint(api)
    app.register_blueprint(errors)
项目:memesocial    作者:mohamed-aziz    | 项目源码 | 文件源码
def register_all_blueprints():
    """
    Regsiter all of my blueprints
    """
    from api import api
    from frontend import frontend

    myBlueprints = [api, frontend]

    for blueprint in myBlueprints:
        app.register_blueprint(blueprint)