summaryrefslogtreecommitdiffstats
path: root/webapp/src/components/BackendModuleSync.vue
diff options
context:
space:
mode:
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