summaryrefslogtreecommitdiffstats
path: root/webapp/src/components/BackendModuleEdit.vue
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/components/BackendModuleEdit.vue
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/components/BackendModuleEdit.vue')
-rw-r--r--webapp/src/components/BackendModuleEdit.vue12
1 files changed, 6 insertions, 6 deletions
diff --git a/webapp/src/components/BackendModuleEdit.vue b/webapp/src/components/BackendModuleEdit.vue
index 87d97a2..d693a15 100644
--- a/webapp/src/components/BackendModuleEdit.vue
+++ b/webapp/src/components/BackendModuleEdit.vue
@@ -217,7 +217,7 @@ export default {
methods: {
submit (event) {
if (this.$refs.form.validate()) {
- this.$http.post('/api/backends/saveBackend', {
+ this.$http.post('/api/backends/save', {
backendId: this.backendId,
backendName: this.backendName,
backendType: this.backendType,
@@ -236,7 +236,7 @@ export default {
}
},
loadBackendTypes () {
- this.$http('/api/backends/getBackendTypes').then(response => {
+ this.$http('/api/backends/getTypes').then(response => {
this.backendChoices = response.data
})
},
@@ -248,7 +248,7 @@ export default {
}
},
loadBackend (backendId) {
- this.$http('/api/backends/getBackendInfoById?id=' + this.backendId).then(response => {
+ this.$http('/api/backends/getInfoById?id=' + this.backendId).then(response => {
this.backendName = response.data.backendName
this.loadData = true
this.backendType = response.data.backendType
@@ -289,9 +289,9 @@ export default {
// Test the credential connection.
this.$http.post('/api/backends/checkConnection', {
- backendName: this.backendName,
- backendType: this.backendType,
- backendCredentials: this.credentials,
+ name: this.backendName,
+ type: this.backendType,
+ credentials: JSON.stringify(this.credentials),
headers: {
'Cache-Control': 'no-cache'
}