Beispiel #1
0
def register_blueprint(app):
	from app.api.v1 import create_blueprint_v1
	app.register_blueprint(create_blueprint_v1(), url_prefix='/v1')
	from app.api.v2 import create_blueprint_v2
	app.register_blueprint(create_blueprint_v2(), url_prefix='/v2')
	from app.web import web
	app.register_blueprint(web)
Beispiel #2
0
def register_blueprints(app):

    from app.api.v1 import create_blueprint_v1
    from app.api.v2 import create_blueprint_v2
    app.register_blueprint(create_blueprint_v1(), url_prefix='/v1')
    app.register_blueprint(create_blueprint_v2(), url_prefix='/v2')
Beispiel #3
0
def register_blueprint(flask_app):
    from app.api.v1 import create_blueprint_v1
    from app.api.v2 import create_blueprint_v2
    flask_app.register_blueprint(create_blueprint_v1())
    flask_app.register_blueprint(create_blueprint_v2())
Beispiel #4
0
def register_blueprints(flask_app):
    from app.api.v2 import create_blueprint_v2
    flask_app.register_blueprint(create_blueprint_v2(), url_prefix='/v2')