diff options
author | Dirk Klimpel <5740567+dklimpel@users.noreply.github.com> | 2020-10-27 15:12:31 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-27 14:12:31 +0000 |
commit | 9b7c28283abf62378cecbde3523b5709448e4140 (patch) | |
tree | a8965be5afe0bb9e144dd932b858cf0ad25feb92 /synapse/rest/admin/__init__.py | |
parent | Merge branch 'master' into develop (diff) | |
download | synapse-9b7c28283abf62378cecbde3523b5709448e4140.tar.xz |
Add admin API to list users' local media (#8647)
Add admin API `GET /_synapse/admin/v1/users/<user_id>/media` to get information of users' uploaded files.
Diffstat (limited to 'synapse/rest/admin/__init__.py')
-rw-r--r-- | synapse/rest/admin/__init__.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/synapse/rest/admin/__init__.py b/synapse/rest/admin/__init__.py index df14bdf26e..a79996cae1 100644 --- a/synapse/rest/admin/__init__.py +++ b/synapse/rest/admin/__init__.py @@ -53,6 +53,7 @@ from synapse.rest.admin.users import ( ResetPasswordRestServlet, SearchUsersRestServlet, UserAdminServlet, + UserMediaRestServlet, UserMembershipRestServlet, UserRegisterServlet, UserRestServletV2, @@ -218,6 +219,7 @@ def register_servlets(hs, http_server): SendServerNoticeServlet(hs).register(http_server) VersionServlet(hs).register(http_server) UserAdminServlet(hs).register(http_server) + UserMediaRestServlet(hs).register(http_server) UserMembershipRestServlet(hs).register(http_server) UserRestServletV2(hs).register(http_server) UsersRestServletV2(hs).register(http_server) |