diff options
author | dartcafe <github@dartcafe.de> | 2020-06-15 18:02:12 +0300 |
---|---|---|
committer | dartcafe <github@dartcafe.de> | 2020-06-15 18:02:12 +0300 |
commit | fe8bc1b4aa307e0d956994c0fdfef51a93f549b2 (patch) | |
tree | 6501a994cf729e46586dad04fdeb4d94bd1c5483 /src/js/store/modules/subModules/shares.js | |
parent | 4632557dde1e437da3768e2baf1166d3056a3315 (diff) |
added shares to API
Diffstat (limited to 'src/js/store/modules/subModules/shares.js')
-rw-r--r-- | src/js/store/modules/subModules/shares.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/js/store/modules/subModules/shares.js b/src/js/store/modules/subModules/shares.js index 644e836f..7db63826 100644 --- a/src/js/store/modules/subModules/shares.js +++ b/src/js/store/modules/subModules/shares.js @@ -74,7 +74,7 @@ const getters = { const actions = { add(context, payload) { - const endPoint = 'apps/polls/share/write/' + const endPoint = 'apps/polls/share/write' payload.share.pollId = context.rootState.poll.id return axios.post(generateUrl(endPoint), { pollId: context.rootState.poll.id, share: payload.share }) .then((response) => { @@ -114,7 +114,7 @@ const actions = { }, delete(context, payload) { - const endPoint = 'apps/polls/share/remove/' + const endPoint = 'apps/polls/share/remove' return axios.post(generateUrl(endPoint), { share: payload.share }) .then(() => { context.commit('delete', { share: payload.share }) |