diff options
author | Joas Schilling <coding@schilljs.com> | 2017-07-18 15:57:19 +0300 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2017-09-25 16:32:14 +0300 |
commit | 8108d3587fbac0a898cd1ace6bf24606a391d005 (patch) | |
tree | 25e7484ce57b81d52a3ce257609120c9f422e281 /appinfo | |
parent | 9a6c4410a133f331877f157bb292f8ebf2fb8de6 (diff) |
Use an OCS controller and long polling instead of event sources
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'appinfo')
-rw-r--r-- | appinfo/routes.php | 24 |
1 files changed, 15 insertions, 9 deletions
diff --git a/appinfo/routes.php b/appinfo/routes.php index e5076e0d0..9121be96e 100644 --- a/appinfo/routes.php +++ b/appinfo/routes.php @@ -29,23 +29,29 @@ return [ 'verb' => 'GET', ], [ + 'name' => 'AppSettings#setSpreedSettings', + 'url' => '/settings/admin', + 'verb' => 'POST', + ], + ], + 'ocs' => [ + [ 'name' => 'Signalling#signalling', - 'url' => '/signalling', + 'url' => '/api/{apiVersion}/signalling', 'verb' => 'POST', + 'requirements' => [ + 'apiVersion' => 'v1', + ], ], [ 'name' => 'Signalling#pullMessages', - 'url' => '/messages', + 'url' => '/api/{apiVersion}/messages', 'verb' => 'GET', + 'requirements' => [ + 'apiVersion' => 'v1', + ], ], [ - 'name' => 'AppSettings#setSpreedSettings', - 'url' => '/settings/admin', - 'verb' => 'POST', - ], - ], - 'ocs' => [ - [ 'name' => 'Call#getPeersForCall', 'url' => '/api/{apiVersion}/call/{token}', 'verb' => 'GET', |