Browse Source

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
tags/v8.2RC1
Roeland Jago Douma 8 years ago
parent
commit
0d3009951f
1 changed files with 8 additions and 8 deletions
  1. 8
    8
      apps/files_sharing/appinfo/routes.php

+ 8
- 8
apps/files_sharing/appinfo/routes.php View File

@@ -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…
Cancel
Save