summaryrefslogtreecommitdiffstats
path: root/apps/files_external/appinfo
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2018-01-17 20:00:09 +0100
committerRoeland Jago Douma <roeland@famdouma.nl>2018-01-18 11:15:03 +0100
commit05f75f803a104e5dbcf11a112122c1232e49f8fd (patch)
tree68e463b88f61d1896970a7dbf8b9e5dc2211e7c4 /apps/files_external/appinfo
parent6e29b8731e25526442d9b878a5a6ae75afc4075e (diff)
downloadnextcloud-server-05f75f803a104e5dbcf11a112122c1232e49f8fd.tar.gz
nextcloud-server-05f75f803a104e5dbcf11a112122c1232e49f8fd.zip
[files_external] OCS endpoint to proper OCSController
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'apps/files_external/appinfo')
-rw-r--r--apps/files_external/appinfo/routes.php37
1 files changed, 19 insertions, 18 deletions
diff --git a/apps/files_external/appinfo/routes.php b/apps/files_external/appinfo/routes.php
index 97c2d7b0e00..b8f055530c4 100644
--- a/apps/files_external/appinfo/routes.php
+++ b/apps/files_external/appinfo/routes.php
@@ -31,26 +31,33 @@
**/
\OC_Mount_Config::$app->registerRoutes(
$this,
- array(
- 'resources' => array(
- 'global_storages' => array('url' => '/globalstorages'),
- 'user_storages' => array('url' => '/userstorages'),
- 'user_global_storages' => array('url' => '/userglobalstorages'),
- ),
- 'routes' => array(
- array(
+ [
+ 'resources' => [
+ 'global_storages' => ['url' => '/globalstorages'],
+ 'user_storages' => ['url' => '/userstorages'],
+ 'user_global_storages' => ['url' => '/userglobalstorages'],
+ ],
+ 'routes' => [
+ [
'name' => 'Ajax#getSshKeys',
'url' => '/ajax/public_key.php',
'verb' => 'POST',
- 'requirements' => array()
- ),
+ 'requirements' => [],
+ ],
[
'name' => 'Ajax#saveGlobalCredentials',
'url' => '/globalcredentials',
'verb' => 'POST',
],
- )
- )
+ ],
+ 'ocs' => [
+ [
+ 'name' => 'Api#getUserMounts',
+ 'url' => '/api/v1/mounts',
+ 'verb' => 'GET',
+ ],
+ ],
+ ]
);
$this->create('files_external_oauth1', 'ajax/oauth1.php')
@@ -61,9 +68,3 @@ $this->create('files_external_oauth2', 'ajax/oauth2.php')
$this->create('files_external_list_applicable', '/applicable')
->actionInclude('files_external/ajax/applicable.php');
-
-\OCP\API::register('get',
- '/apps/files_external/api/v1/mounts',
- array('\OCA\Files_External\Lib\Api', 'getUserMounts'),
- 'files_external');
-