Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/polls.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordartcafe <github@dartcafe.de>2022-06-27 20:37:21 +0300
committerdartcafe <github@dartcafe.de>2022-06-27 20:37:21 +0300
commit3904d95446f039d9ea97553407e6967f78b92ba5 (patch)
treeb3b011d2b2be15ab21cf72643ba22e6926e44aae /appinfo
parentf254e9c33f97ab8df577b5272a8a7310a46168e7 (diff)
initial transfer ownership
Signed-off-by: dartcafe <github@dartcafe.de>
Diffstat (limited to 'appinfo')
-rw-r--r--appinfo/info.xml1
-rw-r--r--appinfo/routes.php3
2 files changed, 4 insertions, 0 deletions
diff --git a/appinfo/info.xml b/appinfo/info.xml
index c5a69243..8826b338 100644
--- a/appinfo/info.xml
+++ b/appinfo/info.xml
@@ -39,6 +39,7 @@
<command>OCA\Polls\Command\Share\Add</command>
<command>OCA\Polls\Command\Share\Remove</command>
<command>OCA\Polls\Command\Db\Rebuild</command>
+ <command>OCA\Polls\Command\Poll\TransferOwnership</command>
</commands>
<settings>
<admin-section>OCA\Polls\Settings\AdminSection</admin-section>
diff --git a/appinfo/routes.php b/appinfo/routes.php
index b620c85e..0d43de06 100644
--- a/appinfo/routes.php
+++ b/appinfo/routes.php
@@ -67,6 +67,8 @@ return [
['name' => 'poll#clone', 'url' => '/poll/{pollId}/clone', 'verb' => 'GET'],
['name' => 'poll#getParticipantsEmailAddresses', 'url' => '/poll/{pollId}/addresses', 'verb' => 'GET'],
+ ['name' => 'poll#transfer_polls', 'url' => '/polls/transfer/{sourceUser}/{destinationUser}', 'verb' => 'PUT'],
+
['name' => 'option#list', 'url' => '/poll/{pollId}/options', 'verb' => 'GET'],
['name' => 'option#add', 'url' => '/option', 'verb' => 'POST'],
['name' => 'option#addBulk', 'url' => '/option/bulk', 'verb' => 'POST'],
@@ -118,6 +120,7 @@ return [
// REST-API calls
['name' => 'poll_api#list', 'url' => '/api/v1.0/polls', 'verb' => 'GET'],
+ ['name' => 'poll_api#transfer_polls', 'url' => '/api/v1.0/polls/transfer/{sourceUser}/{destinationUser}', 'verb' => 'PUT'],
['name' => 'poll_api#add', 'url' => '/api/v1.0/poll', 'verb' => 'POST'],
['name' => 'poll_api#get', 'url' => '/api/v1.0/poll/{pollId}', 'verb' => 'GET'],
['name' => 'poll_api#update', 'url' => '/api/v1.0/poll/{pollId}', 'verb' => 'PUT'],