summaryrefslogtreecommitdiff
path: root/src/mailman/rest/urls.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/mailman/rest/urls.py')
-rw-r--r--src/mailman/rest/urls.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/mailman/rest/urls.py b/src/mailman/rest/urls.py
index ec8e40557..1d7adc0dd 100644
--- a/src/mailman/rest/urls.py
+++ b/src/mailman/rest/urls.py
@@ -22,7 +22,9 @@ from __future__ import absolute_import, unicode_literals
__metaclass__ = type
__all__ = [
'DomainURLMapper',
+ 'FallbackURLMapper',
'MailingListURLMapper',
+ 'MemberURLMapper',
]
@@ -53,10 +55,10 @@ class BasicURLMapper:
self.context = context
self.request = request
self.webservice_config = AdminWebServiceConfiguration()
- self.version = self.webservice_config.service_version_uri_prefix
+ self.version = self.webservice_config.active_versions[0]
self.schema = ('https' if self.webservice_config.use_https else 'http')
- self.hostname = config.webservice.hostname
- self.port = int(config.webservice.port)
+ self.hostname = self.webservice_config.hostname
+ self.port = self.webservice_config.port