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
parent
commit
6150ac24f5
No known key found for this signature in database GPG Key ID: E166FD8976B3BAC8
  1. 2
      appinfo/routes.php
  2. 2
      js/signaling.js

2
appinfo/routes.php

@ -45,7 +45,7 @@ return [
],
[
'name' => 'Signaling#pullMessages',
'url' => '/api/{apiVersion}/messages',
'url' => '/api/{apiVersion}/signaling',
'verb' => 'GET',
'requirements' => [
'apiVersion' => 'v1',

2
js/signaling.js

@ -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) {

Loading…
Cancel
Save