diff options
author | Ivan Sein <ivan@struktur.de> | 2018-04-03 18:00:53 +0300 |
---|---|---|
committer | Ivan Sein <ivan@struktur.de> | 2018-04-03 18:00:53 +0300 |
commit | 34b52f852c24420499ee7a8434bd7f724d87f42b (patch) | |
tree | 408770179baf3ae58152ce989196d3e11afbc2c0 /appinfo/routes.php | |
parent | 9defbd91f00b1153e0a4a6236b83e8d5d1933267 (diff) |
Fix new multi-session signaling endpoints.
Signed-off-by: Ivan Sein <ivan@nextcloud.com>
Diffstat (limited to 'appinfo/routes.php')
-rw-r--r-- | appinfo/routes.php | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/appinfo/routes.php b/appinfo/routes.php index aea286b3b..3be7b8876 100644 --- a/appinfo/routes.php +++ b/appinfo/routes.php @@ -34,37 +34,37 @@ return [ * Signaling */ [ - 'name' => 'Signaling#signaling', - 'url' => '/api/{apiVersion}/signaling/{token}', - 'verb' => 'POST', + 'name' => 'Signaling#getSettings', + 'url' => '/api/{apiVersion}/signaling/settings', + 'verb' => 'GET', 'requirements' => [ 'apiVersion' => 'v1', - 'token' => '^[a-z0-9]{4,30}$', ], ], [ - 'name' => 'Signaling#pullMessages', - 'url' => '/api/{apiVersion}/signaling/{token}', - 'verb' => 'GET', + 'name' => 'Signaling#backend', + 'url' => '/api/{apiVersion}/signaling/backend', + 'verb' => 'POST', 'requirements' => [ 'apiVersion' => 'v1', - 'token' => '^[a-z0-9]{4,30}$', ], ], [ - 'name' => 'Signaling#getSettings', - 'url' => '/api/{apiVersion}/signaling/settings', - 'verb' => 'GET', + 'name' => 'Signaling#signaling', + 'url' => '/api/{apiVersion}/signaling/messages/{token}', + 'verb' => 'POST', 'requirements' => [ 'apiVersion' => 'v1', + 'token' => '^[a-z0-9]{4,30}$', ], ], [ - 'name' => 'Signaling#backend', - 'url' => '/api/{apiVersion}/signaling/backend', - 'verb' => 'POST', + 'name' => 'Signaling#pullMessages', + 'url' => '/api/{apiVersion}/signaling/messages/{token}', + 'verb' => 'GET', 'requirements' => [ 'apiVersion' => 'v1', + 'token' => '^[a-z0-9]{4,30}$', ], ], |