summaryrefslogtreecommitdiffstats
path: root/webapp/src/store
diff options
context:
space:
mode:
authorUdo Walter2018-07-30 01:31:08 +0200
committerUdo Walter2018-07-30 01:31:08 +0200
commitf6cadb25e42e6568098f2962fa9b302cfbf074c5 (patch)
tree4dd205c43603b22d00b2b51a162922643014e436 /webapp/src/store
parent[store/global] simplified settings loading (diff)
downloadbas-f6cadb25e42e6568098f2962fa9b302cfbf074c5.tar.gz
bas-f6cadb25e42e6568098f2962fa9b302cfbf074c5.tar.xz
bas-f6cadb25e42e6568098f2962fa9b302cfbf074c5.zip
[server/router] changed api routing from query keyword to url parameter for group and client api (todo: the rest)
Diffstat (limited to 'webapp/src/store')
-rw-r--r--webapp/src/store/groups.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/webapp/src/store/groups.js b/webapp/src/store/groups.js
index 49c567a..8ce7f6b 100644
--- a/webapp/src/store/groups.js
+++ b/webapp/src/store/groups.js
@@ -29,8 +29,8 @@ export default {
},
actions: {
loadGroupInChain (context, { id, name, tabIndex, switchTab }) {
- var getSubGroups = axios.get('/api/groups?action=getSubGroups&id=' + id)
- var getClients = axios.get('/api/groups?action=getClients&id=' + id)
+ var getSubGroups = axios.get('/api/groups/getSubGroups?id=' + id)
+ var getClients = axios.get('/api/groups/getClients?id=' + id)
axios.all([getSubGroups, getClients]).then(axios.spread((groupRespsonse, clientResponse) => {
var group = { id: id, name: name, subGroups: groupRespsonse.data, clients: clientResponse.data }
context.commit('setGroupInChain', { group: group, tabIndex: tabIndex })
@@ -38,12 +38,12 @@ export default {
}))
},
editGroup (context, { id, name }) {
- axios.get('/api/groups?action=getParents&id=' + id).then(res => {
+ axios.get('/api/groups/getParents?id=' + id).then(res => {
context.commit('openEditGroupDialog', { id: id, name: name, parents: res.data })
})
},
saveGroup (context) {
- axios.post('/api/groups?action=update&id=' + context.state.editGroup.id).then(res => {
+ axios.post('/api/groups/update?id=' + context.state.editGroup.id).then(res => {
context.commit('closeEditGroupDialog')
})
}