summary refs log tree commit diff
path: root/synapse/rest/client/v1/voip.py
diff options
context:
space:
mode:
authorBrendan Abolivier <babolivier@matrix.org>2019-06-04 09:13:42 +0100
committerBrendan Abolivier <babolivier@matrix.org>2019-06-04 09:13:42 +0100
commitaeb226332075964e704006bd6989faa173d63576 (patch)
treec2a1785140a15ba665e04e5b8ec279346411958d /synapse/rest/client/v1/voip.py
parentChangelog (diff)
parentHawkowl/fix missing auth (#5328) (diff)
downloadsynapse-aeb226332075964e704006bd6989faa173d63576.tar.xz
Merge branch 'develop' into babolivier/port_db_account_validity
Diffstat (limited to 'synapse/rest/client/v1/voip.py')
-rw-r--r--synapse/rest/client/v1/voip.py12
1 files changed, 9 insertions, 3 deletions
diff --git a/synapse/rest/client/v1/voip.py b/synapse/rest/client/v1/voip.py
index 53da905eea..6381049210 100644
--- a/synapse/rest/client/v1/voip.py
+++ b/synapse/rest/client/v1/voip.py
@@ -19,11 +19,17 @@ import hmac
 
 from twisted.internet import defer
 
-from .base import ClientV1RestServlet, client_path_patterns
+from synapse.http.servlet import RestServlet
+from synapse.rest.client.v2_alpha._base import client_patterns
 
 
-class VoipRestServlet(ClientV1RestServlet):
-    PATTERNS = client_path_patterns("/voip/turnServer$")
+class VoipRestServlet(RestServlet):
+    PATTERNS = client_patterns("/voip/turnServer$", v1=True)
+
+    def __init__(self, hs):
+        super(VoipRestServlet, self).__init__()
+        self.hs = hs
+        self.auth = hs.get_auth()
 
     @defer.inlineCallbacks
     def on_GET(self, request):