diff options
author | Dirk Klimpel <5740567+dklimpel@users.noreply.github.com> | 2020-10-28 16:02:42 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-28 15:02:42 +0000 |
commit | 22398132785b9f87930d06fbff28e572166beec9 (patch) | |
tree | 9d58bba7a5a194915bfeb62dc5d2c4e10200b3e8 /synapse/rest/admin/__init__.py | |
parent | Run mypy as part of the lint.sh script. (#8633) (diff) | |
download | synapse-22398132785b9f87930d06fbff28e572166beec9.tar.xz |
Add an admin APIs to allow server admins to list users' pushers (#8610)
Add an admin API `GET /_synapse/admin/v1/users/<user_id>/pushers` like https://matrix.org/docs/spec/client_server/latest#get-matrix-client-r0-pushers
Diffstat (limited to 'synapse/rest/admin/__init__.py')
-rw-r--r-- | synapse/rest/admin/__init__.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/synapse/rest/admin/__init__.py b/synapse/rest/admin/__init__.py index a79996cae1..fa7e9e4043 100644 --- a/synapse/rest/admin/__init__.py +++ b/synapse/rest/admin/__init__.py @@ -50,6 +50,7 @@ from synapse.rest.admin.server_notice_servlet import SendServerNoticeServlet from synapse.rest.admin.users import ( AccountValidityRenewServlet, DeactivateAccountRestServlet, + PushersRestServlet, ResetPasswordRestServlet, SearchUsersRestServlet, UserAdminServlet, @@ -226,8 +227,9 @@ def register_servlets(hs, http_server): DeviceRestServlet(hs).register(http_server) DevicesRestServlet(hs).register(http_server) DeleteDevicesRestServlet(hs).register(http_server) - EventReportsRestServlet(hs).register(http_server) EventReportDetailRestServlet(hs).register(http_server) + EventReportsRestServlet(hs).register(http_server) + PushersRestServlet(hs).register(http_server) def register_servlets_for_client_rest_resource(hs, http_server): |