aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/appinfo/routes.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files_sharing/appinfo/routes.php')
-rw-r--r--apps/files_sharing/appinfo/routes.php25
1 files changed, 8 insertions, 17 deletions
diff --git a/apps/files_sharing/appinfo/routes.php b/apps/files_sharing/appinfo/routes.php
index ee7ea55d506..de6967c7d63 100644
--- a/apps/files_sharing/appinfo/routes.php
+++ b/apps/files_sharing/appinfo/routes.php
@@ -69,6 +69,14 @@ $application->registerRoutes($this, [
'url' => '/api/v1/shares/{id}',
'verb' => 'DELETE',
],
+ /*
+ * OCS Sharee API
+ */
+ [
+ 'name' => 'ShareesAPI#search',
+ 'url' => '/api/v1/sharees',
+ 'verb' => 'GET',
+ ],
],
]);
@@ -118,20 +126,3 @@ API::register('delete',
'/apps/files_sharing/api/v1/remote_shares/{id}',
array('\OCA\Files_Sharing\API\Remote', 'unshare'),
'files_sharing');
-
-
-$sharees = new \OCA\Files_Sharing\API\Sharees(\OC::$server->getGroupManager(),
- \OC::$server->getUserManager(),
- \OC::$server->getContactsManager(),
- \OC::$server->getConfig(),
- \OC::$server->getUserSession(),
- \OC::$server->getURLGenerator(),
- \OC::$server->getRequest(),
- \OC::$server->getLogger(),
- \OC::$server->getShareManager());
-
-API::register('get',
- '/apps/files_sharing/api/v1/sharees',
- [$sharees, 'search'],
- 'files_sharing', API::USER_AUTH);
-