summary refs log tree commit diff
path: root/synapse/rest/client/v1/directory.py
diff options
context:
space:
mode:
authorMark Haines <mark.haines@matrix.org>2015-01-23 14:09:51 +0000
committerMark Haines <mark.haines@matrix.org>2015-01-23 14:09:51 +0000
commit4be637cb120f00e5de99c12a79e908e2f26da8af (patch)
treec45fe4e767d585ddbfae9fc92d164e99651d2372 /synapse/rest/client/v1/directory.py
parentMerge pull request #32 from matrix-org/remove_parse_id_from_hs (diff)
downloadsynapse-4be637cb120f00e5de99c12a79e908e2f26da8af.tar.xz
Extract the client v1 base RestServlet to a separate class
Diffstat (limited to 'synapse/rest/client/v1/directory.py')
-rw-r--r--synapse/rest/client/v1/directory.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/rest/client/v1/directory.py b/synapse/rest/client/v1/directory.py
index 1f33ec9e81..15ae8749b8 100644
--- a/synapse/rest/client/v1/directory.py
+++ b/synapse/rest/client/v1/directory.py
@@ -18,7 +18,7 @@ from twisted.internet import defer
 
 from synapse.api.errors import AuthError, SynapseError, Codes
 from synapse.types import RoomAlias
-from .base import RestServlet, client_path_pattern
+from .base import ClientV1RestServlet, client_path_pattern
 
 import json
 import logging
@@ -31,7 +31,7 @@ def register_servlets(hs, http_server):
     ClientDirectoryServer(hs).register(http_server)
 
 
-class ClientDirectoryServer(RestServlet):
+class ClientDirectoryServer(ClientV1RestServlet):
     PATTERN = client_path_pattern("/directory/room/(?P<room_alias>[^/]*)$")
 
     @defer.inlineCallbacks