summary refs log tree commit diff
path: root/synapse/rest/base.py
diff options
context:
space:
mode:
authorKegan Dougal <kegan@matrix.org>2014-08-14 11:52:56 +0100
committerKegan Dougal <kegan@matrix.org>2014-08-14 11:52:56 +0100
commitc75add6ec87cb548b5cc74b7e6e0c56d78d5eae9 (patch)
treea3d49973303039996d9aaee7a05bad44df83a80c /synapse/rest/base.py
parentIf the web client is enabled, automatically redirect root '/' to the web clie... (diff)
downloadsynapse-c75add6ec87cb548b5cc74b7e6e0c56d78d5eae9.tar.xz
Added a urls module for keeping client and federation prefixes.
Diffstat (limited to 'synapse/rest/base.py')
-rw-r--r--synapse/rest/base.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/synapse/rest/base.py b/synapse/rest/base.py
index 124b3a2e0c..6a88cbe866 100644
--- a/synapse/rest/base.py
+++ b/synapse/rest/base.py
@@ -14,10 +14,9 @@
 # limitations under the License.
 
 """ This module contains base REST classes for constructing REST servlets. """
+from synapse.api.urls import CLIENT_PREFIX
 import re
 
-CLIENT_PREFIX = "/matrix/client/api/v1"
-
 
 def client_path_pattern(path_regex):
     """Creates a regex compiled client path with the correct client path