diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2019-10-29 12:22:15 +0100 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2019-12-02 15:28:47 +0100 |
commit | 5274c5426818270460ce05ee0071aa9f189281e6 (patch) | |
tree | 5686820b9f0493ddc2a7005c39eee648849b9d79 /apps/files/appinfo | |
parent | b99134d0a37269b263eef019d1a58317b1d943ed (diff) | |
download | nextcloud-server-5274c5426818270460ce05ee0071aa9f189281e6.tar.gz nextcloud-server-5274c5426818270460ce05ee0071aa9f189281e6.zip |
Add a transfer ownership background job
This job can be initiated by a user to transfer a file/folder to a
target user.
The target user will have to accept the job.
Once that is done the transfers is initiated in the background.
Both parties get notified when the job is done.
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'apps/files/appinfo')
-rw-r--r-- | apps/files/appinfo/info.xml | 4 | ||||
-rw-r--r-- | apps/files/appinfo/routes.php | 17 |
2 files changed, 20 insertions, 1 deletions
diff --git a/apps/files/appinfo/info.xml b/apps/files/appinfo/info.xml index 67c589ed755..20f77774ae6 100644 --- a/apps/files/appinfo/info.xml +++ b/apps/files/appinfo/info.xml @@ -65,4 +65,8 @@ </navigation> </navigations> + <settings> + <personal>OCA\Files\Settings\PersonalSettings</personal> + </settings> + </info> diff --git a/apps/files/appinfo/routes.php b/apps/files/appinfo/routes.php index 9d889fe0e69..e235db76070 100644 --- a/apps/files/appinfo/routes.php +++ b/apps/files/appinfo/routes.php @@ -119,7 +119,22 @@ $application->registerRoutes( 'url' => '/api/v1/directEditing/create', 'verb' => 'POST' ], - ] + [ + 'name' => 'TransferOwnership#transfer', + 'url' => '/api/v1/transferownership', + 'verb' => 'POST', + ], + [ + 'name' => 'TransferOwnership#accept', + 'url' => '/api/v1/transferownership/{id}', + 'verb' => 'POST', + ], + [ + 'name' => 'TransferOwnership#reject', + 'url' => '/api/v1/transferownership/{id}', + 'verb' => 'DELETE', + ], + ], ] ); |