diff options
author | René Gieling <github@dartcafe.de> | 2021-09-12 22:37:11 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-12 22:37:11 +0300 |
commit | 05e2b02ae7324a3af2d2f972f82fd49337de1ac3 (patch) | |
tree | 68b98c48ed81488ea76bca93ca1606ae5879b82a /appinfo/routes.php | |
parent | 31c235b2f752fef5b839469c93bf272f9b91a299 (diff) |
allow users to reset their votes (#1950)
Diffstat (limited to 'appinfo/routes.php')
-rw-r--r-- | appinfo/routes.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/appinfo/routes.php b/appinfo/routes.php index 1f3c9598..45ab550a 100644 --- a/appinfo/routes.php +++ b/appinfo/routes.php @@ -44,6 +44,7 @@ return [ ['name' => 'public#resend_invitation', 'url' => '/s/{token}/resend', 'verb' => 'PUT'], ['name' => 'public#validate_public_username', 'url' => '/check/username', 'verb' => 'POST'], ['name' => 'public#validate_email_address', 'url' => '/check/emailaddress/{emailAddress}', 'verb' => 'GET'], + ['name' => 'public#delete_user', 'url' => '/s/{token}/user', 'verb' => 'DELETE'], ['name' => 'public#watch_poll', 'url' => '/s/{token}/watch', 'verb' => 'GET'], ['name' => 'admin#index', 'url' => '/administration', 'verb' => 'GET'], @@ -78,7 +79,8 @@ return [ ['name' => 'vote#list', 'url' => '/poll/{pollId}/votes', 'verb' => 'GET'], ['name' => 'vote#set', 'url' => '/vote', 'verb' => 'PUT'], - ['name' => 'vote#delete', 'url' => '/poll/{pollId}/user/{userId}', 'verb' => 'DELETE'], + ['name' => 'vote#delete', 'url' => '/poll/{pollId}/user/{userId}', 'verb' => 'DELETE', 'postfix' => 'other'], + ['name' => 'vote#delete', 'url' => '/poll/{pollId}/user', 'verb' => 'DELETE', 'postfix' => 'self'], ['name' => 'share#list', 'url' => '/poll/{pollId}/shares', 'verb' => 'GET'], ['name' => 'share#add', 'url' => '/poll/{pollId}/share', 'verb' => 'POST'], |