Merge "Add /v2 to sample glance-api-paste.ini"

This commit is contained in:
Jenkins 2012-05-05 20:10:35 +00:00 committed by Gerrit Code Review
commit 6d15a2debb
1 changed files with 5 additions and 0 deletions

View File

@ -38,6 +38,7 @@ pipeline = versionnegotiation authtoken context cache cachemanage rootapp
use = egg:Paste#urlmap
/: apiversions
/v1: apiv1app
/v2: apiv1app
[app:apiversions]
paste.app_factory = glance.api.versions:create_resource
@ -46,6 +47,10 @@ paste.app_factory = glance.api.versions:create_resource
paste.app_factory = glance.common.wsgi:app_factory
glance.app_factory = glance.api.v1.router:API
[app:apiv2app]
paste.app_factory = glance.common.wsgi:app_factory
glance.app_factory = glance.api.v2.router:API
[filter:versionnegotiation]
paste.filter_factory = glance.common.wsgi:filter_factory
glance.filter_factory = glance.api.middleware.version_negotiation:VersionNegotiationFilter