diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2015-08-08 22:15:12 +0200 |
---|---|---|
committer | Joas Schilling <nickvergessen@owncloud.com> | 2015-08-26 11:54:23 +0200 |
commit | 98301210a9172e6b0a44bcaf43b4ecf4b31f938e (patch) | |
tree | 0a6a08778194a38c7dc7783c49c34825f1ddf599 /apps/files_sharing/appinfo/routes.php | |
parent | 27af0e82ddba29512a4a5fe08cbd060cc6251264 (diff) | |
download | nextcloud-server-98301210a9172e6b0a44bcaf43b4ecf4b31f938e.tar.gz nextcloud-server-98301210a9172e6b0a44bcaf43b4ecf4b31f938e.zip |
Start of OCS Share API sharees endpoint
Diffstat (limited to 'apps/files_sharing/appinfo/routes.php')
-rw-r--r-- | apps/files_sharing/appinfo/routes.php | 11 |
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); |