diff options
author | Erik Johnston <erik@matrix.org> | 2021-11-08 16:08:02 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-08 16:08:02 +0000 |
commit | 4ee71b96377c39a2b9d060c6aafbce62fb16ccc6 (patch) | |
tree | 71a0905f4118953137fed5551393f93585092d56 /synapse/rest/admin/__init__.py | |
parent | Fix typo in comment from #11255. (#11276) (diff) | |
download | synapse-4ee71b96377c39a2b9d060c6aafbce62fb16ccc6.tar.xz |
Add some background update admin APIs (#11263)
Fixes #11259
Diffstat (limited to 'synapse/rest/admin/__init__.py')
-rw-r--r-- | synapse/rest/admin/__init__.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/synapse/rest/admin/__init__.py b/synapse/rest/admin/__init__.py index 70514e814f..81e98f81d6 100644 --- a/synapse/rest/admin/__init__.py +++ b/synapse/rest/admin/__init__.py @@ -25,6 +25,10 @@ from synapse.http.server import HttpServer, JsonResource from synapse.http.servlet import RestServlet, parse_json_object_from_request from synapse.http.site import SynapseRequest from synapse.rest.admin._base import admin_patterns, assert_requester_is_admin +from synapse.rest.admin.background_updates import ( + BackgroundUpdateEnabledRestServlet, + BackgroundUpdateRestServlet, +) from synapse.rest.admin.devices import ( DeleteDevicesRestServlet, DeviceRestServlet, @@ -247,6 +251,8 @@ def register_servlets(hs: "HomeServer", http_server: HttpServer) -> None: # Some servlets only get registered for the main process. if hs.config.worker.worker_app is None: SendServerNoticeServlet(hs).register(http_server) + BackgroundUpdateEnabledRestServlet(hs).register(http_server) + BackgroundUpdateRestServlet(hs).register(http_server) def register_servlets_for_client_rest_resource( |