diff options
author | Dirk Klimpel <5740567+dklimpel@users.noreply.github.com> | 2020-09-22 19:15:04 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-22 18:15:04 +0100 |
commit | 4da01f9c614f36a293235d6a1fd3602d550f2001 (patch) | |
tree | 918e627f1d3e05da260cd85b2d3370d456107e86 /synapse/rest/admin/__init__.py | |
parent | Merge branch 'master' into develop (diff) | |
download | synapse-4da01f9c614f36a293235d6a1fd3602d550f2001.tar.xz |
Admin API for reported events (#8217)
Add an admin API to read entries of table `event_reports`. API: `GET /_synapse/admin/v1/event_reports`
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 4a75c06480..5c5f00b213 100644 --- a/synapse/rest/admin/__init__.py +++ b/synapse/rest/admin/__init__.py @@ -31,6 +31,7 @@ from synapse.rest.admin.devices import ( DeviceRestServlet, DevicesRestServlet, ) +from synapse.rest.admin.event_reports import EventReportsRestServlet from synapse.rest.admin.groups import DeleteGroupAdminRestServlet from synapse.rest.admin.media import ListMediaInRoom, register_servlets_for_media_repo from synapse.rest.admin.purge_room_servlet import PurgeRoomServlet @@ -216,6 +217,7 @@ 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) def register_servlets_for_client_rest_resource(hs, http_server): |