summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/appinfo
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@owncloud.com>2015-10-30 13:09:38 +0100
committerRoeland Jago Douma <rullzer@owncloud.com>2015-11-05 15:59:09 +0100
commit8b5179459afe1a7355e48f60545bcb76f1cf4699 (patch)
treef0768471e52a41b3f426f742f1cba901e55397aa /apps/files_sharing/appinfo
parent9567fa1194e82a89c510b9540899e27338c00c25 (diff)
downloadnextcloud-server-8b5179459afe1a7355e48f60545bcb76f1cf4699.tar.gz
nextcloud-server-8b5179459afe1a7355e48f60545bcb76f1cf4699.zip
Prepare OCS Share endpoint
Diffstat (limited to 'apps/files_sharing/appinfo')
-rw-r--r--apps/files_sharing/appinfo/routes.php13
1 files changed, 8 insertions, 5 deletions
diff --git a/apps/files_sharing/appinfo/routes.php b/apps/files_sharing/appinfo/routes.php
index db7aa126c4e..8755691c1e8 100644
--- a/apps/files_sharing/appinfo/routes.php
+++ b/apps/files_sharing/appinfo/routes.php
@@ -61,29 +61,31 @@ $this->create('sharing_external_add', '/external')
//TODO: SET: mail notification, waiting for PR #4689 to be accepted
+$OCSShare = new \OCA\Files_Sharing\API\OCSShareWrapper();
+
API::register('get',
'/apps/files_sharing/api/v1/shares',
- array('\OCA\Files_Sharing\API\Local', 'getAllShares'),
+ [$OCSShare, 'getAllShares'],
'files_sharing');
API::register('post',
'/apps/files_sharing/api/v1/shares',
- array('\OCA\Files_Sharing\API\Local', 'createShare'),
+ [$OCSShare, 'createShare'],
'files_sharing');
API::register('get',
'/apps/files_sharing/api/v1/shares/{id}',
- array('\OCA\Files_Sharing\API\Local', 'getShare'),
+ [$OCSShare, 'getShare'],
'files_sharing');
API::register('put',
'/apps/files_sharing/api/v1/shares/{id}',
- array('\OCA\Files_Sharing\API\Local', 'updateShare'),
+ [$OCSShare, 'updateShare'],
'files_sharing');
API::register('delete',
'/apps/files_sharing/api/v1/shares/{id}',
- array('\OCA\Files_Sharing\API\Local', 'deleteShare'),
+ [$OCSShare, 'deleteShare'],
'files_sharing');
API::register('get',
@@ -130,3 +132,4 @@ API::register('get',
'/apps/files_sharing/api/v1/sharees',
[$sharees, 'search'],
'files_sharing', API::USER_AUTH);
+