summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
authorDavid Baker <dave@matrix.org>2015-04-17 13:44:55 +0100
committerDavid Baker <dave@matrix.org>2015-04-17 13:44:55 +0100
commitbf5e54f25537e293b78b26d0b8109c1ee43eee06 (patch)
tree6b360b74a41e0b55c615bed0c7a6c5822ddd08f4 /synapse
parentpassword -> account servlet and add start of an 'add 3pid' endpoint (diff)
downloadsynapse-bf5e54f25537e293b78b26d0b8109c1ee43eee06.tar.xz
Register the 3pid servlet
Diffstat (limited to 'synapse')
-rw-r--r--synapse/rest/client/v2_alpha/account.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/synapse/rest/client/v2_alpha/account.py b/synapse/rest/client/v2_alpha/account.py
index 0f3b12880c..ca92a6a4cf 100644
--- a/synapse/rest/client/v2_alpha/account.py
+++ b/synapse/rest/client/v2_alpha/account.py
@@ -75,7 +75,7 @@ class PasswordRestServlet(RestServlet):
         return 200, {}
 
 
-class AddThreepidRestServlet(RestServlet):
+class ThreepidRestServlet(RestServlet):
     PATTERN = client_v2_pattern("/account/3pid")
 
     @defer.inlineCallbacks
@@ -92,3 +92,5 @@ class AddThreepidRestServlet(RestServlet):
 
 def register_servlets(hs, http_server):
     PasswordRestServlet(hs).register(http_server)
+    ThreepidRestServlet(hs).register(http_server)
+    ThreepidRestServlet(hs).register(http_server)