version request url move to the dir of module

Change-Id: If6819e3131144c5630539d76bafd42b101e06a91
This commit is contained in:
jiasirui 2020-12-23 18:34:02 +08:00
parent 8453642b1e
commit a5e1284138
5 changed files with 247 additions and 250 deletions

View File

@ -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 #

View File

@ -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)

View File

@ -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__)

View File

View 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 = {