summary refs log tree commit diff
path: root/synapse/federation
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/federation
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/federation')
-rw-r--r--synapse/federation/transport.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/synapse/federation/transport.py b/synapse/federation/transport.py
index e09dfc2670..50c3df4a5d 100644
--- a/synapse/federation/transport.py
+++ b/synapse/federation/transport.py
@@ -23,6 +23,7 @@ over a different (albeit still reliable) protocol.
 
 from twisted.internet import defer
 
+from synapse.api.urls import FEDERATION_PREFIX as PREFIX
 from synapse.util.logutils import log_function
 
 import logging
@@ -33,9 +34,6 @@ import re
 logger = logging.getLogger(__name__)
 
 
-PREFIX = "/matrix/federation/v1"
-
-
 class TransportLayer(object):
     """This is a basic implementation of the transport layer that translates
     transactions and other requests to/from HTTP.