summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
authorNick Mills-Barrett <nick@beeper.com>2022-05-25 10:41:41 +0100
committerGitHub <noreply@github.com>2022-05-25 10:41:41 +0100
commit2e5f88b5e69fa4d7385b32d9c439e0073e8d6916 (patch)
tree3d76320e0635dc55a0131c452dcd4aec4a6fc916 /synapse
parentFix incorrect worker-allowed path in documentation (#12867) (diff)
downloadsynapse-2e5f88b5e69fa4d7385b32d9c439e0073e8d6916.tar.xz
Add the `/account/whoami` endpoint to generic workers (#12866)
Diffstat (limited to 'synapse')
-rw-r--r--synapse/app/generic_worker.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/synapse/app/generic_worker.py b/synapse/app/generic_worker.py
index 2a9480a5c1..39d9db8d98 100644
--- a/synapse/app/generic_worker.py
+++ b/synapse/app/generic_worker.py
@@ -87,7 +87,7 @@ from synapse.rest.client import (
     voip,
 )
 from synapse.rest.client._base import client_patterns
-from synapse.rest.client.account import ThreepidRestServlet
+from synapse.rest.client.account import ThreepidRestServlet, WhoamiRestServlet
 from synapse.rest.client.devices import DevicesRestServlet
 from synapse.rest.client.keys import (
     KeyChangesServlet,
@@ -289,6 +289,7 @@ class GenericWorkerServer(HomeServer):
                     RegistrationTokenValidityRestServlet(self).register(resource)
                     login.register_servlets(self, resource)
                     ThreepidRestServlet(self).register(resource)
+                    WhoamiRestServlet(self).register(resource)
                     DevicesRestServlet(self).register(resource)
 
                     # Read-only