Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/spreed.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2018-03-26 19:24:39 +0300
committerJoas Schilling <coding@schilljs.com>2018-03-27 18:16:38 +0300
commit3ec66a20449b4ec00e960fce1046ffa8e8702f51 (patch)
tree501c2fc3baa316b10faa6422c3dc838878b8f43e /appinfo/routes.php
parentb314bd0ae4a3a60a50d2657c86820642657a4d5e (diff)
Abstract away the session handling
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'appinfo/routes.php')
-rw-r--r--appinfo/routes.php23
1 files changed, 21 insertions, 2 deletions
diff --git a/appinfo/routes.php b/appinfo/routes.php
index 6bd738168..aea286b3b 100644
--- a/appinfo/routes.php
+++ b/appinfo/routes.php
@@ -30,20 +30,25 @@ return [
],
],
'ocs' => [
+ /**
+ * Signaling
+ */
[
'name' => 'Signaling#signaling',
- 'url' => '/api/{apiVersion}/signaling',
+ 'url' => '/api/{apiVersion}/signaling/{token}',
'verb' => 'POST',
'requirements' => [
'apiVersion' => 'v1',
+ 'token' => '^[a-z0-9]{4,30}$',
],
],
[
'name' => 'Signaling#pullMessages',
- 'url' => '/api/{apiVersion}/signaling',
+ 'url' => '/api/{apiVersion}/signaling/{token}',
'verb' => 'GET',
'requirements' => [
'apiVersion' => 'v1',
+ 'token' => '^[a-z0-9]{4,30}$',
],
],
[
@@ -62,6 +67,10 @@ return [
'apiVersion' => 'v1',
],
],
+
+ /**
+ * Call
+ */
[
'name' => 'Call#getPeersForCall',
'url' => '/api/{apiVersion}/call/{token}',
@@ -99,6 +108,9 @@ return [
],
],
+ /**
+ * Chat
+ */
[
'name' => 'Chat#receiveMessages',
'url' => '/api/{apiVersion}/chat/{token}',
@@ -118,6 +130,9 @@ return [
],
],
+ /**
+ * Room
+ */
[
'name' => 'Room#getRooms',
'url' => '/api/{apiVersion}/room',
@@ -265,6 +280,10 @@ return [
'token' => '^[a-z0-9]{4,30}$',
],
],
+
+ /**
+ * Guest
+ */
[
'name' => 'Guest#setDisplayName',
'url' => '/api/{apiVersion}/guest/{token}/name',