summaryrefslogtreecommitdiffstats
path: root/webapp/src/store
diff options
context:
space:
mode:
authorJannik Schönartz2018-07-30 05:07:27 +0200
committerJannik Schönartz2018-07-30 05:07:27 +0200
commitcabf3a7658c990158a227bc0e597a720a49b3cba (patch)
tree1ba9245d8e46bcf6e115baef2886f90a6b582c95 /webapp/src/store
parent[server] Changed old modules to the new rounter restructure. (diff)
downloadbas-cabf3a7658c990158a227bc0e597a720a49b3cba.tar.gz
bas-cabf3a7658c990158a227bc0e597a720a49b3cba.tar.xz
bas-cabf3a7658c990158a227bc0e597a720a49b3cba.zip
[webapp] Changed post/get method names to match the restructured backend again.
Diffstat (limited to 'webapp/src/store')
-rw-r--r--webapp/src/store/backends.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/webapp/src/store/backends.js b/webapp/src/store/backends.js
index bc99669..c8ebfc4 100644
--- a/webapp/src/store/backends.js
+++ b/webapp/src/store/backends.js
@@ -30,7 +30,7 @@ export default {
deleteSelectedBackends (context) {
// Filter selected array to get a list of ids.
const filteredArray = context.state.selected.map(x => x.id)
- axios.post('/api/backends/deleteBackends', {
+ axios.post('/api/backends/delete', {
id: filteredArray
}).then(response => {
context.dispatch('loadData')
@@ -38,7 +38,7 @@ export default {
})
},
loadData (context) {
- axios.get('/api/backends/getBackendList').then(response => {
+ axios.get('/api/backends/getList').then(response => {
// Needed for initializing the diffrent dynamic loading buttons.
var tmpItems = response.data
tmpItems.forEach(function (item) {