diff options
author | dartcafe <github@dartcafe.de> | 2020-06-20 23:13:27 +0300 |
---|---|---|
committer | dartcafe <github@dartcafe.de> | 2020-06-20 23:13:27 +0300 |
commit | 9f98851cf5fc5a1bc6811c9d432e8c0464b9763d (patch) | |
tree | 550244cbefd6697ef16d2acbf1242a5a6e85eadf /src/js/store/modules/subModules/votes.js | |
parent | af77c5cba4642761c644cae761fbedcc82acc4e6 (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.js | 6 |
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), { |