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>2020-06-20 23:13:27 +0300
committerdartcafe <github@dartcafe.de>2020-06-20 23:13:27 +0300
commit9f98851cf5fc5a1bc6811c9d432e8c0464b9763d (patch)
tree550244cbefd6697ef16d2acbf1242a5a6e85eadf /src/js/store/modules/subModules/votes.js
parentaf77c5cba4642761c644cae761fbedcc82acc4e6 (diff)
remove trailing backslashes from routes
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), {