diff options
author | David Baker <dave@matrix.org> | 2015-04-17 13:44:55 +0100 |
---|---|---|
committer | David Baker <dave@matrix.org> | 2015-04-17 13:44:55 +0100 |
commit | bf5e54f25537e293b78b26d0b8109c1ee43eee06 (patch) | |
tree | 6b360b74a41e0b55c615bed0c7a6c5822ddd08f4 /synapse | |
parent | password -> account servlet and add start of an 'add 3pid' endpoint (diff) | |
download | synapse-bf5e54f25537e293b78b26d0b8109c1ee43eee06.tar.xz |
Register the 3pid servlet
Diffstat (limited to 'synapse')
-rw-r--r-- | synapse/rest/client/v2_alpha/account.py | 4 |
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) |