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

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