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
|
||||
|
||||
[app:osvenusversionapp]
|
||||
paste.app_factory = venus.api.versions:Versions.factory
|
||||
paste.app_factory = venus.modules.version.versions:Versions.factory
|
||||
|
||||
##########
|
||||
# Shared #
|
||||
|
@ -81,10 +81,10 @@ class APIRouter(base_wsgi.Router):
|
||||
mapper = ProjectMapper()
|
||||
self.resources = {}
|
||||
self._setup_routes(mapper, ext_mgr)
|
||||
self._setup_ext_routes(mapper, ext_mgr)
|
||||
self._setup_extensions(ext_mgr)
|
||||
# self._setup_ext_routes(mapper, ext_mgr)
|
||||
# self._setup_extensions(ext_mgr)
|
||||
for url in mapper.matchlist:
|
||||
LOG.debug('URL methid: s% register: %s ',
|
||||
LOG.debug('URL method: %s register: %s ',
|
||||
url.conditions, url.routepath)
|
||||
|
||||
super(APIRouter, self).__init__(mapper)
|
||||
|
@ -20,9 +20,9 @@ from oslo_log import log as logging
|
||||
|
||||
from venus.api import extensions
|
||||
import venus.api.openstack
|
||||
from venus.api import versions
|
||||
from venus.modules.custom_config import controller as custom_config
|
||||
from venus.modules.search import controller as search
|
||||
from venus.modules.version import versions
|
||||
|
||||
|
||||
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
|
||||
|
||||
from lxml import etree
|
||||
from oslo_config import cfg
|
||||
|
||||
from venus.api.openstack import wsgi
|
||||
from venus.api.v1.views import versions as views_versions
|
||||
from venus.api import xmlutil
|
||||
|
||||
|
||||
CONF = cfg.CONF
|
||||
from venus.conf import CONF
|
||||
|
||||
|
||||
_KNOWN_VERSIONS = {
|
Loading…
Reference in New Issue
Block a user