diff options
author | Joas Schilling <coding@schilljs.com> | 2022-05-06 16:13:27 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2022-06-13 12:52:58 +0200 |
commit | aeb1bd528871ec286ae4dc60997bc17259ffcbe2 (patch) | |
tree | ab98a0c7295a998492f9e7e54a4ab812e7f9cdc3 /appinfo/routes/routesPollController.php | |
parent | bce64c3fbf65fc2032e6a59748329035ab707518 (diff) |
Allow to see the poll data and close it
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'appinfo/routes/routesPollController.php')
-rw-r--r-- | appinfo/routes/routesPollController.php | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/appinfo/routes/routesPollController.php b/appinfo/routes/routesPollController.php index 1e5145e60..eb3b81f5d 100644 --- a/appinfo/routes/routesPollController.php +++ b/appinfo/routes/routesPollController.php @@ -2,9 +2,9 @@ declare(strict_types=1); /** - * @copyright Copyright (c) 2016 Lukas Reschke <lukas@statuscode.ch> + * @copyright Copyright (c) 2022 Joas Schilling <coding@schilljs.com> * - * @author Lukas Reschke <lukas@statuscode.ch> + * @author Joas Schilling <coding@schilljs.com> * * @license GNU AGPL version 3 or any later version * @@ -38,5 +38,9 @@ return [ 'ocs' => [ /** @see \OCA\Talk\Controller\PollController::createPoll() */ ['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::closePoll() */ + ['name' => 'Poll#closePoll', 'url' => '/api/{apiVersion}/poll/{token}/{pollId}', 'verb' => 'DELETE', 'requirements' => $requirementsWithPollId], ], ]; |