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

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2015-08-08 23:15:12 +0300
committerJoas Schilling <nickvergessen@owncloud.com>2015-08-26 12:54:23 +0300
commit98301210a9172e6b0a44bcaf43b4ecf4b31f938e (patch)
tree0a6a08778194a38c7dc7783c49c34825f1ddf599 /apps/files_sharing/appinfo/routes.php
parent27af0e82ddba29512a4a5fe08cbd060cc6251264 (diff)
Start of OCS Share API sharees endpoint
Diffstat (limited to 'apps/files_sharing/appinfo/routes.php')
-rw-r--r--apps/files_sharing/appinfo/routes.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/apps/files_sharing/appinfo/routes.php b/apps/files_sharing/appinfo/routes.php
index 184ad29bba4..498b0eb55e9 100644
--- a/apps/files_sharing/appinfo/routes.php
+++ b/apps/files_sharing/appinfo/routes.php
@@ -102,3 +102,14 @@ API::register('delete',
array('\OCA\Files_Sharing\API\Remote', 'declineShare'),
'files_sharing');
+$sharees = new \OCA\Files_Sharing\API\Sharees(\OC::$server->getGroupManager(),
+ \OC::$server->getUserManager(),
+ \OC::$server->getContactsManager(),
+ \OC::$server->getAppConfig(),
+ \OC::$server->getUserSession(),
+ \OC::$server->getURLGenerator());
+
+API::register('get',
+ '/apps/files_sharing/api/v1/sharees',
+ [$sharees, 'search'],
+ 'files_sharing', API::USER_AUTH);