summary refs log tree commit diff
path: root/synapse/appservice/api.py
diff options
context:
space:
mode:
authorPaul "LeoNerd" Evans <paul@matrix.org>2016-08-24 11:55:57 +0100
committerPaul "LeoNerd" Evans <paul@matrix.org>2016-08-24 11:55:57 +0100
commit63c19e1df949dd8fc15defc1942e2405c5426958 (patch)
tree2bceb7f7dcb719e0bed189cd56c632727688e1db /synapse/appservice/api.py
parentMerge pull request #1040 from matrix-org/erikj/pagination (diff)
downloadsynapse-63c19e1df949dd8fc15defc1942e2405c5426958.tar.xz
Move 3PU/3PL lookup APIs into /thirdparty containing entity
Diffstat (limited to 'synapse/appservice/api.py')
-rw-r--r--synapse/appservice/api.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/appservice/api.py b/synapse/appservice/api.py
index 066127b666..07ec33b9a1 100644
--- a/synapse/appservice/api.py
+++ b/synapse/appservice/api.py
@@ -97,10 +97,10 @@ class ApplicationServiceApi(SimpleHttpClient):
     @defer.inlineCallbacks
     def query_3pe(self, service, kind, protocol, fields):
         if kind == ThirdPartyEntityKind.USER:
-            uri = "%s/3pu/%s" % (service.url, urllib.quote(protocol))
+            uri = "%s/thirdparty/user/%s" % (service.url, urllib.quote(protocol))
             required_field = "userid"
         elif kind == ThirdPartyEntityKind.LOCATION:
-            uri = "%s/3pl/%s" % (service.url, urllib.quote(protocol))
+            uri = "%s/thirdparty/location/%s" % (service.url, urllib.quote(protocol))
             required_field = "alias"
         else:
             raise ValueError(