Modify api-paste.ini v1 to v2
Since Cyborg v1 api has been deprecated. We should change the pipeline to v2. Story: 2007041 Task: 37853 Change-Id: Ieca9776cec8fe2e65e7ec9a6d4e96a6b0a6affaa
This commit is contained in:
parent
59b8047ea1
commit
afa4a2ab24
@ -1,11 +1,11 @@
|
|||||||
[pipeline:main]
|
[pipeline:main]
|
||||||
pipeline = cors request_id authtoken api_v1
|
pipeline = cors request_id authtoken api_v2
|
||||||
|
|
||||||
[app:api_v1]
|
[app:api_v2]
|
||||||
paste.app_factory = cyborg.api.app:app_factory
|
paste.app_factory = cyborg.api.app:app_factory
|
||||||
|
|
||||||
[filter:authtoken]
|
[filter:authtoken]
|
||||||
acl_public_routes = /, /v1
|
acl_public_routes = /, /v2
|
||||||
paste.filter_factory = cyborg.api.middleware.auth_token:AuthTokenMiddleware.factory
|
paste.filter_factory = cyborg.api.middleware.auth_token:AuthTokenMiddleware.factory
|
||||||
|
|
||||||
[filter:osprofiler]
|
[filter:osprofiler]
|
||||||
|
Loading…
Reference in New Issue
Block a user