summaryrefslogtreecommitdiffstats
path: root/appinfo
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2022-05-11 15:23:05 +0200
committerJoas Schilling <coding@schilljs.com>2022-06-13 12:52:58 +0200
commit1052b7e1ec44cbb345fcf7d66a941943dfc9706b (patch)
tree53e584527be86052e52e74f2b9905dcaadfb71cf /appinfo
parent4fef2a89c131b54b7c57ea1a6a9d013ee0a52b11 (diff)
Add endpoint for voting
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'appinfo')
-rw-r--r--appinfo/routes/routesPollController.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/appinfo/routes/routesPollController.php b/appinfo/routes/routesPollController.php
index eb3b81f5d..f772292f4 100644
--- a/appinfo/routes/routesPollController.php
+++ b/appinfo/routes/routesPollController.php
@@ -40,6 +40,8 @@ return [
['name' => 'Poll#createPoll', 'url' => '/api/{apiVersion}/poll/{token}', 'verb' => 'POST', 'requirements' => $requirements],
/** @see \OCA\Talk\Controller\PollController::showPoll() */
['name' => 'Poll#showPoll', 'url' => '/api/{apiVersion}/poll/{token}/{pollId}', 'verb' => 'GET', 'requirements' => $requirementsWithPollId],
+ /** @see \OCA\Talk\Controller\PollController::votePoll() */
+ ['name' => 'Poll#votePoll', 'url' => '/api/{apiVersion}/poll/{token}/{pollId}', 'verb' => 'POST', 'requirements' => $requirementsWithPollId],
/** @see \OCA\Talk\Controller\PollController::closePoll() */
['name' => 'Poll#closePoll', 'url' => '/api/{apiVersion}/poll/{token}/{pollId}', 'verb' => 'DELETE', 'requirements' => $requirementsWithPollId],
],