diff options
author | dartcafe <github@dartcafe.de> | 2020-08-22 08:09:01 +0300 |
---|---|---|
committer | dartcafe <github@dartcafe.de> | 2020-08-22 08:09:01 +0300 |
commit | b0b220ef34e65a3f4e4fb12603142c376e5573f5 (patch) | |
tree | 16a0096f81717ae2e6647dc5736c5b7f4e64e033 /lib/Controller | |
parent | 6b73deac12a2dabc4d94b92ce91eebd04620e3bb (diff) |
move option sequence to backend #1058
Diffstat (limited to 'lib/Controller')
-rw-r--r-- | lib/Controller/OptionController.php | 13 |
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); + } } |