summary refs log tree commit diff
path: root/synapse/rest/client/v2_alpha/account.py
diff options
context:
space:
mode:
authorBrendan Abolivier <babolivier@matrix.org>2019-05-09 13:07:43 +0100
committerBrendan Abolivier <babolivier@matrix.org>2019-05-09 13:07:43 +0100
commitf304f1a574a7114ad4ccc335563d1ecb3eb49501 (patch)
treee12554164ef0f242355ec7ee397f07b2df432d79 /synapse/rest/client/v2_alpha/account.py
parentFix test (diff)
downloadsynapse-f304f1a574a7114ad4ccc335563d1ecb3eb49501.tar.xz
Incorporate review
Diffstat (limited to 'synapse/rest/client/v2_alpha/account.py')
-rw-r--r--synapse/rest/client/v2_alpha/account.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/synapse/rest/client/v2_alpha/account.py b/synapse/rest/client/v2_alpha/account.py
index f1037ce115..08079a9bc6 100644
--- a/synapse/rest/client/v2_alpha/account.py
+++ b/synapse/rest/client/v2_alpha/account.py
@@ -15,6 +15,7 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 import logging
+import re
 
 from six.moves import http_client
 
@@ -482,11 +483,10 @@ class ThreepidDeleteRestServlet(RestServlet):
 
 
 class ThreepidLookupRestServlet(RestServlet):
-    PATTERNS = client_v2_patterns("/account/3pid/lookup$")
+    PATTERNS = [re.compile("^/_matrix/client/unstable/account/3pid/lookup$")]
 
     def __init__(self, hs):
         super(ThreepidLookupRestServlet, self).__init__()
-        self.config = hs.config
         self.auth = hs.get_auth()
         self.identity_handler = hs.get_handlers().identity_handler
 
@@ -514,11 +514,10 @@ class ThreepidLookupRestServlet(RestServlet):
 
 
 class ThreepidBulkLookupRestServlet(RestServlet):
-    PATTERNS = client_v2_patterns("/account/3pid/bulk_lookup$")
+    PATTERNS = [re.compile("^/_matrix/client/unstable/account/3pid/bulk_lookup$")]
 
     def __init__(self, hs):
         super(ThreepidBulkLookupRestServlet, self).__init__()
-        self.config = hs.config
         self.auth = hs.get_auth()
         self.identity_handler = hs.get_handlers().identity_handler