mirror of
https://mau.dev/maunium/synapse.git
synced 2024-10-01 01:36:05 -04:00
Register the 3pid servlet
This commit is contained in:
parent
94e1e58b4d
commit
bf5e54f255
@ -75,7 +75,7 @@ class PasswordRestServlet(RestServlet):
|
|||||||
return 200, {}
|
return 200, {}
|
||||||
|
|
||||||
|
|
||||||
class AddThreepidRestServlet(RestServlet):
|
class ThreepidRestServlet(RestServlet):
|
||||||
PATTERN = client_v2_pattern("/account/3pid")
|
PATTERN = client_v2_pattern("/account/3pid")
|
||||||
|
|
||||||
@defer.inlineCallbacks
|
@defer.inlineCallbacks
|
||||||
@ -92,3 +92,5 @@ class AddThreepidRestServlet(RestServlet):
|
|||||||
|
|
||||||
def register_servlets(hs, http_server):
|
def register_servlets(hs, http_server):
|
||||||
PasswordRestServlet(hs).register(http_server)
|
PasswordRestServlet(hs).register(http_server)
|
||||||
|
ThreepidRestServlet(hs).register(http_server)
|
||||||
|
ThreepidRestServlet(hs).register(http_server)
|
||||||
|
Loading…
Reference in New Issue
Block a user