mirror of
https://github.com/nextcloud/server.git
synced 2026-06-09 00:32:29 -04:00
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
This commit is contained in:
parent
7310c4166a
commit
0d3009951f
1 changed files with 8 additions and 8 deletions
|
|
@ -88,25 +88,25 @@ 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'),
|
||||
|
|
|
|||
Loading…
Reference in a new issue