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>2017-07-06 16:37:26 +0300
committerJoas Schilling <coding@schilljs.com>2017-07-12 12:53:16 +0300
commitb274441c61ae9e2e8a66e4d4d46b5ad27a352ea6 (patch)
tree58759774302f31c8fba256fbcbfe52230c85c27e /appinfo
parent4836abdfef0c7fae6fbd4ef50b45df5c40205eaa (diff)
Split the API controller into 2
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'appinfo')
-rw-r--r--appinfo/info.xml2
-rw-r--r--appinfo/routes.php99
2 files changed, 51 insertions, 50 deletions
diff --git a/appinfo/info.xml b/appinfo/info.xml
index b1a3f5011..1d573c429 100644
--- a/appinfo/info.xml
+++ b/appinfo/info.xml
@@ -55,7 +55,7 @@ And in the works for the [coming versions](https://github.com/nextcloud/spreed/m
<navigations>
<navigation>
<name>Video calls</name>
- <route>spreed.page.index</route>
+ <route>spreed.Page.index</route>
<order>3</order>
</navigation>
</navigations>
diff --git a/appinfo/routes.php b/appinfo/routes.php
index eff5c254e..2879c9a2c 100644
--- a/appinfo/routes.php
+++ b/appinfo/routes.php
@@ -24,7 +24,7 @@
return [
'routes' => [
[
- 'name' => 'page#index',
+ 'name' => 'Page#index',
'url' => '/',
'verb' => 'GET',
],
@@ -46,25 +46,13 @@ return [
],
'ocs' => [
[
- 'name' => 'api#getRooms',
+ 'name' => 'Call#getRooms',
'url' => '/api/{apiVersion}/room',
'verb' => 'GET',
'requirements' => ['apiVersion' => 'v1'],
],
[
- 'name' => 'api#makePublic',
- 'url' => '/api/{apiVersion}/room/public',
- 'verb' => 'POST',
- 'requirements' => ['apiVersion' => 'v1'],
- ],
- [
- 'name' => 'api#makePrivate',
- 'url' => '/api/{apiVersion}/room/public',
- 'verb' => 'DELETE',
- 'requirements' => ['apiVersion' => 'v1'],
- ],
- [
- 'name' => 'api#getRoom',
+ 'name' => 'Call#getRoom',
'url' => '/api/{apiVersion}/room/{token}',
'verb' => 'GET',
'requirements' => [
@@ -73,34 +61,7 @@ return [
],
],
[
- 'name' => 'api#renameRoom',
- 'url' => '/api/{apiVersion}/room/{roomId}',
- 'verb' => 'PUT',
- 'requirements' => [
- 'apiVersion' => 'v1',
- 'roomId' => '\d+'
- ],
- ],
- [
- 'name' => 'api#addParticipantToRoom',
- 'url' => '/api/{apiVersion}/room/{roomId}',
- 'verb' => 'POST',
- 'requirements' => [
- 'apiVersion' => 'v1',
- 'roomId' => '\d+'
- ],
- ],
- [
- 'name' => 'api#leaveRoom',
- 'url' => '/api/{apiVersion}/room/{roomId}',
- 'verb' => 'DELETE',
- 'requirements' => [
- 'apiVersion' => 'v1',
- 'roomId' => '\d+'
- ],
- ],
- [
- 'name' => 'api#getPeersInRoom',
+ 'name' => 'Call#getPeersInRoom',
'url' => '/api/{apiVersion}/room/{token}/peers',
'verb' => 'GET',
'requirements' => [
@@ -109,7 +70,7 @@ return [
],
],
[
- 'name' => 'api#joinRoom',
+ 'name' => 'Call#joinRoom',
'url' => '/api/{apiVersion}/room/{token}/join',
'verb' => 'POST',
'requirements' => [
@@ -118,7 +79,7 @@ return [
],
],
[
- 'name' => 'api#ping',
+ 'name' => 'Call#ping',
'url' => '/api/{apiVersion}/ping',
'verb' => 'POST',
'requirements' => [
@@ -127,29 +88,69 @@ return [
],
],
[
- 'name' => 'api#leave',
+ 'name' => 'Call#leave',
'url' => '/api/{apiVersion}/leave',
'verb' => 'DELETE',
'requirements' => ['apiVersion' => 'v1'],
],
+
[
- 'name' => 'api#createOneToOneRoom',
+ 'name' => 'Room#createOneToOneRoom',
'url' => '/api/{apiVersion}/oneToOne',
'verb' => 'PUT',
'requirements' => ['apiVersion' => 'v1'],
],
[
- 'name' => 'api#createGroupRoom',
+ 'name' => 'Room#createGroupRoom',
'url' => '/api/{apiVersion}/group',
'verb' => 'PUT',
'requirements' => ['apiVersion' => 'v1'],
],
[
- 'name' => 'api#createPublicRoom',
+ 'name' => 'Room#createPublicRoom',
'url' => '/api/{apiVersion}/public',
'verb' => 'PUT',
'requirements' => ['apiVersion' => 'v1'],
],
+ [
+ 'name' => 'Room#renameRoom',
+ 'url' => '/api/{apiVersion}/room/{roomId}',
+ 'verb' => 'PUT',
+ 'requirements' => [
+ 'apiVersion' => 'v1',
+ 'roomId' => '\d+'
+ ],
+ ],
+ [
+ 'name' => 'Room#makePublic',
+ 'url' => '/api/{apiVersion}/room/public',
+ 'verb' => 'POST',
+ 'requirements' => ['apiVersion' => 'v1'],
+ ],
+ [
+ 'name' => 'Room#makePrivate',
+ 'url' => '/api/{apiVersion}/room/public',
+ 'verb' => 'DELETE',
+ 'requirements' => ['apiVersion' => 'v1'],
+ ],
+ [
+ 'name' => 'Room#addParticipantToRoom',
+ 'url' => '/api/{apiVersion}/room/{roomId}',
+ 'verb' => 'POST',
+ 'requirements' => [
+ 'apiVersion' => 'v1',
+ 'roomId' => '\d+'
+ ],
+ ],
+ [
+ 'name' => 'Room#leaveRoom',
+ 'url' => '/api/{apiVersion}/room/{roomId}',
+ 'verb' => 'DELETE',
+ 'requirements' => [
+ 'apiVersion' => 'v1',
+ 'roomId' => '\d+'
+ ],
+ ],
],
];