The REST API spec only alows for returning a single server so name the
endpoint appropriately.pull/10/head
parent
7679ee7321
commit
7dc7c53029
|
@ -24,7 +24,7 @@ import base64
|
|||
|
||||
|
||||
class VoipRestServlet(RestServlet):
|
||||
PATTERN = client_path_pattern("/voip/turnServers$")
|
||||
PATTERN = client_path_pattern("/voip/turnServer$")
|
||||
|
||||
@defer.inlineCallbacks
|
||||
def on_GET(self, request):
|
||||
|
|
|
@ -765,7 +765,7 @@ angular.module('matrixService', [])
|
|||
},
|
||||
|
||||
getTurnServer: function() {
|
||||
return doRequest("GET", "/voip/turnServers");
|
||||
return doRequest("GET", "/voip/turnServer");
|
||||
}
|
||||
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue