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:
-rw-r--r--appinfo/routes.php4
-rw-r--r--docs/API_v1.0.md2
-rw-r--r--src/js/store/modules/subscription.js4
3 files changed, 5 insertions, 5 deletions
diff --git a/appinfo/routes.php b/appinfo/routes.php
index 0259f841..d7120e14 100644
--- a/appinfo/routes.php
+++ b/appinfo/routes.php
@@ -30,8 +30,8 @@ return [
['name' => 'page#vote_public', 'url' => '/s/{token}', 'verb' => 'GET', 'postfix' => 'public'],
['name' => 'page#vote_public', 'url' => '/poll/{token}', 'verb' => 'GET', 'postfix' => 'oldpublic'],
- ['name' => 'subscription#get', 'url' => '/subscription/get/{pollId}', 'verb' => 'GET'],
- ['name' => 'subscription#set', 'url' => '/subscription/set', 'verb' => 'POST'],
+ ['name' => 'subscription#get', 'url' => '/subscription/{pollId}', 'verb' => 'GET'],
+ ['name' => 'subscription#set', 'url' => '/subscription', 'verb' => 'POST'],
['name' => 'comment#getByToken', 'url' => '/comments/s/{token}', 'verb' => 'GET'],
['name' => 'comment#get', 'url' => '/comments/{pollId}', 'verb' => 'GET'],
diff --git a/docs/API_v1.0.md b/docs/API_v1.0.md
index af4efc16..2f1c3326 100644
--- a/docs/API_v1.0.md
+++ b/docs/API_v1.0.md
@@ -24,7 +24,7 @@ Example calls:
| POST | /api/v1.0/poll/clone/{pollId} | Clone poll {pollId} | 201, 403, 404 |
| PUT | /api/v1.0/poll/{pollId} | Update poll | 200, 403, 404, 409 |
| DELETE | /api/v1.0/poll/{pollId} | Delete poll logical | 200, 403, 404 |
-| DELETE | /api/v1.0/poll/permanent{pollId} | Delete poll permanently | 200, 403, 404 |
+| DELETE | /api/v1.0/poll/permanent/{pollId} | Delete poll permanently | 200, 403, 404 |
| GET | /api/v1.0/poll/enum | Get valid enums | 200, 403, 404 |
## Add poll
diff --git a/src/js/store/modules/subscription.js b/src/js/store/modules/subscription.js
index 725c0b04..02861a45 100644
--- a/src/js/store/modules/subscription.js
+++ b/src/js/store/modules/subscription.js
@@ -43,7 +43,7 @@ const mutations = {
const actions = {
getSubscription(context, payload) {
- const endPoint = 'apps/polls/subscription/get'
+ const endPoint = 'apps/polls/subscription'
return axios.get(generateUrl(endPoint.concat('/', payload.pollId)))
.then(() => {
@@ -55,7 +55,7 @@ const actions = {
},
writeSubscriptionPromise(context, payload) {
- const endPoint = 'apps/polls/subscription/set'
+ const endPoint = 'apps/polls/subscription'
return axios.post(generateUrl(endPoint), { pollId: payload.pollId, subscribed: state.subscribed })
.then(() => {
})