def root_app_factory(loader, global_conf, **local_conf): """Freezer can manage multiple versions, but only launch one version at a time, Otherwise it is easy to cause confusion. If there is a demand in the future for a single freezer-api instance to support both v1 and v2 at a time, you need to add a new patch to implement it. """ if CONF.enable_v1_api and '/v1' in local_conf: del local_conf['/v2'] else: del local_conf['/v1'] return urlmap.urlmap_factory(loader, global_conf, **local_conf)
def root_app_factory(loader, global_conf, **local_conf): return urlmap.urlmap_factory(loader, global_conf, **local_conf)
def root_app_factory(loader, global_conf, **local_conf): return urlmap.urlmap_factory(loader, global_conf, **local_conf)
def root_app_factory(loader, global_conf, **local_conf): """Allows freezer to launch multiple applications at a time. It will allow freezer to manage multiple versions. """ return urlmap.urlmap_factory(loader, global_conf, **local_conf)