summaryrefslogtreecommitdiffstats
path: root/webapp/src/components/BackendModuleSync.vue
diff options
context:
space:
mode:
authorJannik Schönartz2018-08-10 04:41:57 +0200
committerJannik Schönartz2018-08-10 04:41:57 +0200
commit17591fc7edf4104895b5842d9bf3b0e8eff98304 (patch)
tree619f44ce618f41771a617a8a5c289263c04346d7 /webapp/src/components/BackendModuleSync.vue
parent[permissions] fix bug with recursive-mode-switch (diff)
downloadbas-17591fc7edf4104895b5842d9bf3b0e8eff98304.tar.gz
bas-17591fc7edf4104895b5842d9bf3b0e8eff98304.tar.xz
bas-17591fc7edf4104895b5842d9bf3b0e8eff98304.zip
[server/router] Rework router
Reworked the router to match more design guidlines with the REST apis
Diffstat (limited to 'webapp/src/components/BackendModuleSync.vue')
-rw-r--r--webapp/src/components/BackendModuleSync.vue8
1 files changed, 4 insertions, 4 deletions
diff --git a/webapp/src/components/BackendModuleSync.vue b/webapp/src/components/BackendModuleSync.vue
index 1df3354..99a7126 100644
--- a/webapp/src/components/BackendModuleSync.vue
+++ b/webapp/src/components/BackendModuleSync.vue
@@ -136,7 +136,7 @@ export default {
},
methods: {
save (event) {
- this.$http.post('/api/backends/saveSyncSettings', {
+ this.$http.put('/api/backends/' + this.backendId + '/syncsettings', {
id: this.backendId,
groups: this.cbxGroups,
clients: this.cbxClients,
@@ -174,15 +174,15 @@ export default {
sync: function (value) {
if (value) {
// Load the sync types from the backend.
- this.$http('/api/backends/getSyncTypes?id=' + this.backendId).then(response => {
+ this.$http('/api/backends/' + this.backendId + '/synctypes').then(response => {
this.syncTypes = response.data
})
// Load the object types from the backend.
- this.$http('/api/backends/getObjectTypes?id=' + this.backendId).then(response => {
+ this.$http('/api/backends/' + this.backendId + '/objecttypes').then(response => {
this.objectTypes = response.data
})
- this.$http('/api/backends/getSyncSettings?id=' + this.backendId).then(response => {
+ this.$http('/api/backends/' + this.backendId + '/syncsettings').then(response => {
this.cbxGroups = response.data.groups
this.cbxClients = response.data.clients
this.syncType = response.data.sync