diff options
author | Dirk Klimpel <5740567+dklimpel@users.noreply.github.com> | 2023-04-14 18:26:07 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-14 12:26:07 -0400 |
commit | e4a25d022c1e4b71e043b07324d95362f7fb4067 (patch) | |
tree | 14244883d33d034ae45a6b12fd5401e80110405a /synapse/rest | |
parent | User directory background update speedup (#15435) (diff) | |
download | synapse-e4a25d022c1e4b71e043b07324d95362f7fb4067.tar.xz |
Load `/capabilities` endpoint on workers (#15436)
Diffstat (limited to 'synapse/rest')
-rw-r--r-- | synapse/rest/__init__.py | 2 | ||||
-rw-r--r-- | synapse/rest/client/capabilities.py | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/synapse/rest/__init__.py b/synapse/rest/__init__.py index 19603ed137..1af8d99d20 100644 --- a/synapse/rest/__init__.py +++ b/synapse/rest/__init__.py @@ -133,8 +133,8 @@ class ClientRestResource(JsonResource): if is_main_process: room_upgrade_rest_servlet.register_servlets(hs, client_resource) room_batch.register_servlets(hs, client_resource) + capabilities.register_servlets(hs, client_resource) if is_main_process: - capabilities.register_servlets(hs, client_resource) account_validity.register_servlets(hs, client_resource) relations.register_servlets(hs, client_resource) password_policy.register_servlets(hs, client_resource) diff --git a/synapse/rest/client/capabilities.py b/synapse/rest/client/capabilities.py index e84dde31b1..0dbf8f6818 100644 --- a/synapse/rest/client/capabilities.py +++ b/synapse/rest/client/capabilities.py @@ -33,6 +33,7 @@ class CapabilitiesRestServlet(RestServlet): """End point to expose the capabilities of the server.""" PATTERNS = client_patterns("/capabilities$") + CATEGORY = "Client API requests" def __init__(self, hs: "HomeServer"): super().__init__() |