Skip to content
Snippets Groups Projects
Unverified Commit 2e5f88b5 authored by Nick Mills-Barrett's avatar Nick Mills-Barrett Committed by GitHub
Browse files

Add the `/account/whoami` endpoint to generic workers (#12866)

parent b4fab0b1
No related branches found
No related tags found
No related merge requests found
Enable the `/account/whoami` endpoint on synapse worker processes. Contributed by Nick @ Beeper.
...@@ -208,6 +208,7 @@ information. ...@@ -208,6 +208,7 @@ information.
^/_matrix/client/(v1|unstable/org.matrix.msc2946)/rooms/.*/hierarchy$ ^/_matrix/client/(v1|unstable/org.matrix.msc2946)/rooms/.*/hierarchy$
^/_matrix/client/unstable/im.nheko.summary/rooms/.*/summary$ ^/_matrix/client/unstable/im.nheko.summary/rooms/.*/summary$
^/_matrix/client/(r0|v3|unstable)/account/3pid$ ^/_matrix/client/(r0|v3|unstable)/account/3pid$
^/_matrix/client/(r0|v3|unstable)/account/whoami$
^/_matrix/client/(r0|v3|unstable)/devices$ ^/_matrix/client/(r0|v3|unstable)/devices$
^/_matrix/client/versions$ ^/_matrix/client/versions$
^/_matrix/client/(api/v1|r0|v3|unstable)/voip/turnServer$ ^/_matrix/client/(api/v1|r0|v3|unstable)/voip/turnServer$
......
...@@ -87,7 +87,7 @@ from synapse.rest.client import ( ...@@ -87,7 +87,7 @@ from synapse.rest.client import (
voip, voip,
) )
from synapse.rest.client._base import client_patterns 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.devices import DevicesRestServlet
from synapse.rest.client.keys import ( from synapse.rest.client.keys import (
KeyChangesServlet, KeyChangesServlet,
...@@ -289,6 +289,7 @@ class GenericWorkerServer(HomeServer): ...@@ -289,6 +289,7 @@ class GenericWorkerServer(HomeServer):
RegistrationTokenValidityRestServlet(self).register(resource) RegistrationTokenValidityRestServlet(self).register(resource)
login.register_servlets(self, resource) login.register_servlets(self, resource)
ThreepidRestServlet(self).register(resource) ThreepidRestServlet(self).register(resource)
WhoamiRestServlet(self).register(resource)
DevicesRestServlet(self).register(resource) DevicesRestServlet(self).register(resource)
# Read-only # Read-only
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment