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>2020-08-22 08:09:01 +0300
committerdartcafe <github@dartcafe.de>2020-08-22 08:09:01 +0300
commitb0b220ef34e65a3f4e4fb12603142c376e5573f5 (patch)
tree16a0096f81717ae2e6647dc5736c5b7f4e64e033 /lib/Controller
parent6b73deac12a2dabc4d94b92ce91eebd04620e3bb (diff)
move option sequence to backend #1058
Diffstat (limited to 'lib/Controller')
-rw-r--r--lib/Controller/OptionController.php13
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/Controller/OptionController.php b/lib/Controller/OptionController.php
index 466902ee..f7a36ce6 100644
--- a/lib/Controller/OptionController.php
+++ b/lib/Controller/OptionController.php
@@ -118,4 +118,17 @@ class OptionController extends Controller {
public function reorder($pollId, $options) {
return new DataResponse(['options' => $this->optionService->reorder($pollId, $options)], Http::STATUS_OK);
}
+
+ /**
+ * Reorder options
+ * @NoAdminRequired
+ * @param int $optionId
+ * @param int $step
+ * @param string $unit
+ * @param int $amount
+ * @return DataResponse
+ */
+ public function sequence($optionId, $step, $unit, $amount) {
+ return new DataResponse(['options' => $this->optionService->sequence($optionId, $step, $unit, $amount)], Http::STATUS_OK);
+ }
}