Added a urls module for keeping client and federation prefixes.

This commit is contained in:
Kegan Dougal 2014-08-14 11:52:56 +01:00
parent 9fd445eb92
commit c75add6ec8
5 changed files with 23 additions and 14 deletions

View file

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