diff options
author | Amber Brown <hawkowl@atleastfornow.net> | 2019-05-30 01:47:16 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-30 01:47:16 +1000 |
commit | 46c8f7a5170d04dfa6ad02c69667d4aa48635231 (patch) | |
tree | b6c17f116151ab0437a396b9ed91aa328887b999 /synapse/rest | |
parent | Serve CAS login over r0 (#5286) (diff) | |
download | synapse-46c8f7a5170d04dfa6ad02c69667d4aa48635231.tar.xz |
Implement the SHHS complexity API (#5216)
Diffstat (limited to 'synapse/rest')
-rw-r--r-- | synapse/rest/admin/__init__.py | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/synapse/rest/admin/__init__.py b/synapse/rest/admin/__init__.py index 744d85594f..d6c4dcdb18 100644 --- a/synapse/rest/admin/__init__.py +++ b/synapse/rest/admin/__init__.py @@ -822,10 +822,16 @@ class AdminRestResource(JsonResource): def __init__(self, hs): JsonResource.__init__(self, hs, canonical_json=False) + register_servlets(hs, self) - register_servlets_for_client_rest_resource(hs, self) - SendServerNoticeServlet(hs).register(self) - VersionServlet(hs).register(self) + +def register_servlets(hs, http_server): + """ + Register all the admin servlets. + """ + register_servlets_for_client_rest_resource(hs, http_server) + SendServerNoticeServlet(hs).register(http_server) + VersionServlet(hs).register(http_server) def register_servlets_for_client_rest_resource(hs, http_server): |