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>2021-01-10 23:28:11 +0300
committerdartcafe <github@dartcafe.de>2021-01-11 00:43:46 +0300
commit98feeb300ebd1a46c3bc4a9a7fd4c6d82a247d9b (patch)
tree1a8d91ee23e5c4e5c885e59d15ef993ca60270b2 /appinfo/routes.php
parentc8a5e72cdd7451347011b83a320ec21a8ce927b4 (diff)
refactoring, optimization, tidy
Signed-off-by: dartcafe <github@dartcafe.de>
Diffstat (limited to 'appinfo/routes.php')
-rw-r--r--appinfo/routes.php17
1 files changed, 11 insertions, 6 deletions
diff --git a/appinfo/routes.php b/appinfo/routes.php
index 7d3e96e5..e90b541d 100644
--- a/appinfo/routes.php
+++ b/appinfo/routes.php
@@ -24,11 +24,16 @@
return [
'routes' => [
['name' => 'public#vote_page', 'url' => '/s/{token}', 'verb' => 'GET'],
- ['name' => 'public#poll', 'url' => '/s/{token}/poll', 'verb' => 'GET'],
- ['name' => 'public#vote', 'url' => '/s/{token}/vote', 'verb' => 'PUT'],
- ['name' => 'public#comment', 'url' => '/s/{token}/comment', 'verb' => 'POST'],
- ['name' => 'public#comment_delete', 'url' => '/s/{token}/comment/{commentId}', 'verb' => 'DELETE', 'postfix' => 'public'],
- ['name' => 'public#subscription', 'url' => '/s/{token}/subscription', 'verb' => 'GET'],
+ ['name' => 'public#get_share', 'url' => '/s/{token}/share', 'verb' => 'GET'],
+ ['name' => 'public#get_poll', 'url' => '/s/{token}/poll', 'verb' => 'GET'],
+ ['name' => 'public#get_comments', 'url' => '/s/{token}/comments', 'verb' => 'GET'],
+ ['name' => 'public#get_options', 'url' => '/s/{token}/options', 'verb' => 'GET'],
+ ['name' => 'public#get_votes', 'url' => '/s/{token}/votes', 'verb' => 'GET'],
+ ['name' => 'public#get_subscription', 'url' => '/s/{token}/subscription', 'verb' => 'GET'],
+
+ ['name' => 'public#set_vote', 'url' => '/s/{token}/vote', 'verb' => 'PUT'],
+ ['name' => 'public#add_comment', 'url' => '/s/{token}/comment', 'verb' => 'POST'],
+ ['name' => 'public#delete_comment', 'url' => '/s/{token}/comment/{commentId}', 'verb' => 'DELETE', 'postfix' => 'public'],
['name' => 'public#subscribe', 'url' => '/s/{token}/subscribe', 'verb' => 'PUT'],
['name' => 'public#unsubscribe', 'url' => '/s/{token}/unsubscribe', 'verb' => 'PUT'],
['name' => 'public#register', 'url' => '/s/{token}/register', 'verb' => 'POST'],
@@ -46,7 +51,7 @@ return [
['name' => 'page#vote', 'url' => '/vote/{id}', 'verb' => 'GET'],
['name' => 'poll#list', 'url' => '/polls', 'verb' => 'GET'],
- ['name' => 'poll#get', 'url' => '/poll/{pollId}', 'verb' => 'GET'],
+ ['name' => 'poll#get', 'url' => '/poll/{pollId}/poll', 'verb' => 'GET'],
['name' => 'poll#add', 'url' => '/poll/add', 'verb' => 'POST'],
['name' => 'poll#update', 'url' => '/poll/{pollId}', 'verb' => 'PUT'],
['name' => 'poll#delete', 'url' => '/poll/{pollId}', 'verb' => 'DELETE'],