version request url move to the dir of module
Change-Id: If6819e3131144c5630539d76bafd42b101e06a91
This commit is contained in:
parent
8453642b1e
commit
a5e1284138
@ -37,7 +37,7 @@ paste.app_factory = venus.api.v1.router:APIRouter.factory
|
|||||||
pipeline = faultwrap osvenusversionapp
|
pipeline = faultwrap osvenusversionapp
|
||||||
|
|
||||||
[app:osvenusversionapp]
|
[app:osvenusversionapp]
|
||||||
paste.app_factory = venus.api.versions:Versions.factory
|
paste.app_factory = venus.modules.version.versions:Versions.factory
|
||||||
|
|
||||||
##########
|
##########
|
||||||
# Shared #
|
# Shared #
|
||||||
|
@ -81,10 +81,10 @@ class APIRouter(base_wsgi.Router):
|
|||||||
mapper = ProjectMapper()
|
mapper = ProjectMapper()
|
||||||
self.resources = {}
|
self.resources = {}
|
||||||
self._setup_routes(mapper, ext_mgr)
|
self._setup_routes(mapper, ext_mgr)
|
||||||
self._setup_ext_routes(mapper, ext_mgr)
|
# self._setup_ext_routes(mapper, ext_mgr)
|
||||||
self._setup_extensions(ext_mgr)
|
# self._setup_extensions(ext_mgr)
|
||||||
for url in mapper.matchlist:
|
for url in mapper.matchlist:
|
||||||
LOG.debug('URL methid: s% register: %s ',
|
LOG.debug('URL method: %s register: %s ',
|
||||||
url.conditions, url.routepath)
|
url.conditions, url.routepath)
|
||||||
|
|
||||||
super(APIRouter, self).__init__(mapper)
|
super(APIRouter, self).__init__(mapper)
|
||||||
|
@ -20,9 +20,9 @@ from oslo_log import log as logging
|
|||||||
|
|
||||||
from venus.api import extensions
|
from venus.api import extensions
|
||||||
import venus.api.openstack
|
import venus.api.openstack
|
||||||
from venus.api import versions
|
|
||||||
from venus.modules.custom_config import controller as custom_config
|
from venus.modules.custom_config import controller as custom_config
|
||||||
from venus.modules.search import controller as search
|
from venus.modules.search import controller as search
|
||||||
|
from venus.modules.version import versions
|
||||||
|
|
||||||
|
|
||||||
LOG = logging.getLogger(__name__)
|
LOG = logging.getLogger(__name__)
|
||||||
|
0
venus/modules/version/__init__.py
Normal file
0
venus/modules/version/__init__.py
Normal file
@ -15,14 +15,11 @@
|
|||||||
import datetime
|
import datetime
|
||||||
|
|
||||||
from lxml import etree
|
from lxml import etree
|
||||||
from oslo_config import cfg
|
|
||||||
|
|
||||||
from venus.api.openstack import wsgi
|
from venus.api.openstack import wsgi
|
||||||
from venus.api.v1.views import versions as views_versions
|
from venus.api.v1.views import versions as views_versions
|
||||||
from venus.api import xmlutil
|
from venus.api import xmlutil
|
||||||
|
from venus.conf import CONF
|
||||||
|
|
||||||
CONF = cfg.CONF
|
|
||||||
|
|
||||||
|
|
||||||
_KNOWN_VERSIONS = {
|
_KNOWN_VERSIONS = {
|
Loading…
Reference in New Issue
Block a user