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:
Diffstat (limited to 'src/js/store/modules/subModules/votes.js')
-rw-r--r--src/js/store/modules/subModules/votes.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/js/store/modules/subModules/votes.js b/src/js/store/modules/subModules/votes.js
index 3c70472d..a09cccae 100644
--- a/src/js/store/modules/subModules/votes.js
+++ b/src/js/store/modules/subModules/votes.js
@@ -115,7 +115,7 @@ const getters = {
const actions = {
delete(context, payload) {
- const endPoint = 'apps/polls/votes/delete/'
+ const endPoint = 'apps/polls/votes/delete'
return axios.post(generateUrl(endPoint), {
pollId: context.rootState.poll.id,
voteId: 0,
@@ -132,10 +132,10 @@ const actions = {
},
set(context, payload) {
- let endPoint = 'apps/polls/vote/set/'
+ let endPoint = 'apps/polls/vote/set'
if (context.rootState.poll.acl.foundByToken) {
- endPoint = endPoint.concat('s/')
+ endPoint = endPoint.concat('/s')
}
return axios.post(generateUrl(endPoint), {