summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/appinfo/routes.php
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2015-10-01 14:25:14 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2015-10-02 07:40:53 +0200
commit0d3009951fe801f9c0d4599694638446166b4ee5 (patch)
tree379d18e73152c17498eeee876ea2949c7872c258 /apps/files_sharing/appinfo/routes.php
parent7310c4166ab3f5f441a29af6e4c74b9222b13df7 (diff)
downloadnextcloud-server-0d3009951fe801f9c0d4599694638446166b4ee5.tar.gz
nextcloud-server-0d3009951fe801f9c0d4599694638446166b4ee5.zip
Made routes remote_shares only again
Since we need a unique id to accept/reject shares for now we keep the pending shares under remote_shares. * remote_shares/pending lists pending shares * PUT/DELETE to remote_shares/pending/<ID> will accept/reject the share
Diffstat (limited to 'apps/files_sharing/appinfo/routes.php')
-rw-r--r--apps/files_sharing/appinfo/routes.php16
1 files changed, 8 insertions, 8 deletions
diff --git a/apps/files_sharing/appinfo/routes.php b/apps/files_sharing/appinfo/routes.php
index 063b4d70a15..3794df37992 100644
--- a/apps/files_sharing/appinfo/routes.php
+++ b/apps/files_sharing/appinfo/routes.php
@@ -88,26 +88,26 @@ API::register('delete',
'files_sharing');
API::register('get',
- '/apps/files_sharing/api/v1/pending_shares',
+ '/apps/files_sharing/api/v1/remote_shares',
+ array('\OCA\Files_Sharing\API\Remote', 'getShares'),
+ 'files_sharing');
+
+API::register('get',
+ '/apps/files_sharing/api/v1/remote_shares/pending',
array('\OCA\Files_Sharing\API\Remote', 'getOpenShares'),
'files_sharing');
API::register('post',
- '/apps/files_sharing/api/v1/pending_shares/{id}',
+ '/apps/files_sharing/api/v1/remote_shares/pending/{id}',
array('\OCA\Files_Sharing\API\Remote', 'acceptShare'),
'files_sharing');
API::register('delete',
- '/apps/files_sharing/api/v1/pending_shares/{id}',
+ '/apps/files_sharing/api/v1/remote_shares/pending/{id}',
array('\OCA\Files_Sharing\API\Remote', 'declineShare'),
'files_sharing');
API::register('get',
- '/apps/files_sharing/api/v1/remote_shares',
- array('\OCA\Files_Sharing\API\Remote', 'getShares'),
- 'files_sharing');
-
-API::register('get',
'/apps/files_sharing/api/v1/remote_shares/{id}',
array('\OCA\Files_Sharing\API\Remote', 'getShare'),
'files_sharing');