diff options
author | Dirk Klimpel <5740567+dklimpel@users.noreply.github.com> | 2021-12-06 17:59:50 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-06 16:59:50 +0000 |
commit | 8b4b153c9e86c04c7db8c74fde4b6a04becbc461 (patch) | |
tree | 5da0699bffef681e75a796e0a96208bca23293b3 /synapse/rest/admin/__init__.py | |
parent | Include bundled aggregations in /sync and related fixes (#11478) (diff) | |
download | synapse-8b4b153c9e86c04c7db8c74fde4b6a04becbc461.tar.xz |
Add admin API to get some information about federation status (#11407)
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 c51a029bf3..c499afd4be 100644 --- a/synapse/rest/admin/__init__.py +++ b/synapse/rest/admin/__init__.py @@ -40,6 +40,10 @@ from synapse.rest.admin.event_reports import ( EventReportDetailRestServlet, EventReportsRestServlet, ) +from synapse.rest.admin.federation import ( + DestinationsRestServlet, + ListDestinationsRestServlet, +) from synapse.rest.admin.groups import DeleteGroupAdminRestServlet from synapse.rest.admin.media import ListMediaInRoom, register_servlets_for_media_repo from synapse.rest.admin.registration_tokens import ( @@ -261,6 +265,8 @@ def register_servlets(hs: "HomeServer", http_server: HttpServer) -> None: ListRegistrationTokensRestServlet(hs).register(http_server) NewRegistrationTokenRestServlet(hs).register(http_server) RegistrationTokenRestServlet(hs).register(http_server) + DestinationsRestServlet(hs).register(http_server) + ListDestinationsRestServlet(hs).register(http_server) # Some servlets only get registered for the main process. if hs.config.worker.worker_app is None: |