diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2018-06-19 09:20:35 +0200 |
---|---|---|
committer | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2018-07-05 12:43:56 +0200 |
commit | d805959e819e64ccf47dfa55fca96b222dedfa9a (patch) | |
tree | 69762a89ab4b3db870a33a72d20a809bf8eaa3df /apps/files_sharing/appinfo/routes.php | |
parent | 86d9528bc93402a18a3202bb3ff17c812b94402e (diff) | |
download | nextcloud-server-d805959e819e64ccf47dfa55fca96b222dedfa9a.tar.gz nextcloud-server-d805959e819e64ccf47dfa55fca96b222dedfa9a.zip |
Add API to undelete delete group shares
When a group share is deleted we keep track of this in the DB.
Right now it is only possible for a recipient to get back the share by
asking the sharer to delete it and to share it again. This doesn't
scale.
This endpoint makes it possible to get back the share.
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'apps/files_sharing/appinfo/routes.php')
-rw-r--r-- | apps/files_sharing/appinfo/routes.php | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/apps/files_sharing/appinfo/routes.php b/apps/files_sharing/appinfo/routes.php index 8e5110c6a16..eea6715e57d 100644 --- a/apps/files_sharing/appinfo/routes.php +++ b/apps/files_sharing/appinfo/routes.php @@ -74,6 +74,19 @@ return [ 'verb' => 'DELETE', ], /* + * Deleted Shares + */ + [ + 'name' => 'DeletedShareAPI#index', + 'url' => '/api/v1/deletedshares', + 'verb' => 'GET', + ], + [ + 'name' => 'DeletedShareAPI#undelete', + 'url' => '/api/v1/deletedshares/{id}', + 'verb' => 'POST', + ], + /* * OCS Sharee API */ [ |