diff options
author | Erik Johnston <erikj@jki.re> | 2016-08-15 15:39:05 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-08-15 15:39:05 +0100 |
commit | 75299af4fcaecfacb7449ebe0982d2ed0bd6edbd (patch) | |
tree | 65f878a58ae489aa0708f5ba66882f5c85f73003 /synapse/rest/client/v1/admin.py | |
parent | Merge pull request #1007 from sargon/develop (diff) | |
parent | Doc get_next() context manager usage (diff) | |
download | synapse-75299af4fcaecfacb7449ebe0982d2ed0bd6edbd.tar.xz |
Merge pull request #1009 from matrix-org/erikj/event_split
Split out /events to synchrotron
Diffstat (limited to 'synapse/rest/client/v1/admin.py')
-rw-r--r-- | synapse/rest/client/v1/admin.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/synapse/rest/client/v1/admin.py b/synapse/rest/client/v1/admin.py index b0cb31a448..af21661d7c 100644 --- a/synapse/rest/client/v1/admin.py +++ b/synapse/rest/client/v1/admin.py @@ -28,6 +28,10 @@ logger = logging.getLogger(__name__) class WhoisRestServlet(ClientV1RestServlet): PATTERNS = client_path_patterns("/admin/whois/(?P<user_id>[^/]*)") + def __init__(self, hs): + super(WhoisRestServlet, self).__init__(hs) + self.handlers = hs.get_handlers() + @defer.inlineCallbacks def on_GET(self, request, user_id): target_user = UserID.from_string(user_id) @@ -82,6 +86,10 @@ class PurgeHistoryRestServlet(ClientV1RestServlet): "/admin/purge_history/(?P<room_id>[^/]*)/(?P<event_id>[^/]*)" ) + def __init__(self, hs): + super(PurgeHistoryRestServlet, self).__init__(hs) + self.handlers = hs.get_handlers() + @defer.inlineCallbacks def on_POST(self, request, room_id, event_id): requester = yield self.auth.get_user_by_req(request) |