Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def init_app(application):
config_app(application)
setup_logging(application)
blueprint_v1 = Blueprint('api_v1', __name__, url_prefix=application.config['API_V1_URL_PREFIX'])
blueprint_v2 = Blueprint('api_v2', __name__, url_prefix=application.config['API_V2_URL_PREFIX'])
register_api(application, api_v1, ns_v1, blueprint_v1)
register_api(application, api_v2, ns_v2, blueprint_v2)