summary refs log tree commit diff
path: root/synapse/rest
diff options
context:
space:
mode:
authorDavid Baker <dave@matrix.org>2016-05-31 11:05:16 +0100
committerDavid Baker <dave@matrix.org>2016-05-31 11:05:16 +0100
commit887c6e6f052e1dc5e61a0b4bade8e7bd3a63e275 (patch)
tree81ccb0ae8e2a57d0acacc1b604f65859875c6532 /synapse/rest
parentFix to allow start with postgres (diff)
downloadsynapse-887c6e6f052e1dc5e61a0b4bade8e7bd3a63e275.tar.xz
Split out the room list handler
So I can use it from federation bits without pulling in all the handlers.
Diffstat (limited to 'synapse/rest')
-rw-r--r--synapse/rest/client/v1/room.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/rest/client/v1/room.py b/synapse/rest/client/v1/room.py
index 644aa4e513..2d22bbdaa3 100644
--- a/synapse/rest/client/v1/room.py
+++ b/synapse/rest/client/v1/room.py
@@ -279,7 +279,7 @@ class PublicRoomListRestServlet(ClientV1RestServlet):
 
     @defer.inlineCallbacks
     def on_GET(self, request):
-        handler = self.handlers.room_list_handler
+        handler = self.hs.get_room_list_handler()
         data = yield handler.get_public_room_list()
         defer.returnValue((200, data))