Browse Source
Move "get messages" also to signaling route
Signed-off-by: Joas Schilling <coding@schilljs.com>
pull/363/head
Joas Schilling
8 years ago
No known key found for this signature in database
GPG Key ID: E166FD8976B3BAC8
2 changed files with
2 additions and
2 deletions
-
appinfo/routes.php
-
js/signaling.js
|
|
@ -45,7 +45,7 @@ return [ |
|
|
|
], |
|
|
|
[ |
|
|
|
'name' => 'Signaling#pullMessages', |
|
|
|
'url' => '/api/{apiVersion}/messages', |
|
|
|
'url' => '/api/{apiVersion}/signaling', |
|
|
|
'verb' => 'GET', |
|
|
|
'requirements' => [ |
|
|
|
'apiVersion' => 'v1', |
|
|
|
|
|
@ -314,7 +314,7 @@ |
|
|
|
InternalSignaling.prototype._startPullingMessages = function() { |
|
|
|
// Connect to the messages endpoint and pull for new messages
|
|
|
|
$.ajax({ |
|
|
|
url: OC.linkToOCS('apps/spreed/api/v1', 2) + 'messages', |
|
|
|
url: OC.linkToOCS('apps/spreed/api/v1', 2) + 'signaling', |
|
|
|
type: 'GET', |
|
|
|
dataType: 'json', |
|
|
|
beforeSend: function (request) { |
|
|
|