aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/appinfo/routes.php
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@owncloud.com>2015-06-01 15:05:04 +0200
committerJoas Schilling <nickvergessen@owncloud.com>2015-07-03 09:30:49 +0200
commit2118713477207b28d2d2b3abb95467c61fac69ec (patch)
treea114f7d45e4bc006570075a3c95ca3c1b6b329fc /apps/files_sharing/appinfo/routes.php
parentdf303b910a3f4f7e836f9ab7630426a25456e77a (diff)
downloadnextcloud-server-2118713477207b28d2d2b3abb95467c61fac69ec.tar.gz
nextcloud-server-2118713477207b28d2d2b3abb95467c61fac69ec.zip
Add OCS api to get, accept and decline remote shares
Diffstat (limited to 'apps/files_sharing/appinfo/routes.php')
-rw-r--r--apps/files_sharing/appinfo/routes.php15
1 files changed, 15 insertions, 0 deletions
diff --git a/apps/files_sharing/appinfo/routes.php b/apps/files_sharing/appinfo/routes.php
index 2686abed0ae..21d21a83441 100644
--- a/apps/files_sharing/appinfo/routes.php
+++ b/apps/files_sharing/appinfo/routes.php
@@ -82,6 +82,21 @@ API::register('delete',
array('\OCA\Files_Sharing\API\Local', 'deleteShare'),
'files_sharing');
+API::register('get',
+ '/apps/files_sharing/api/v1/remote_shares',
+ array('\OCA\Files_Sharing\API\Remote', 'getOpenShares'),
+ 'files_sharing');
+
+API::register('post',
+ '/apps/files_sharing/api/v1/remote_shares/{id}',
+ array('\OCA\Files_Sharing\API\Remote', 'acceptShare'),
+ 'files_sharing');
+
+API::register('delete',
+ '/apps/files_sharing/api/v1/remote_shares/{id}',
+ array('\OCA\Files_Sharing\API\Remote', 'declineShare'),
+ 'files_sharing');
+
// Register with the capabilities API
API::register('get',
'/cloud/capabilities',