From 206f4be3024aa02b7fde08c437ebe0153e77c73f Mon Sep 17 00:00:00 2001 From: cheetah Date: Mon, 12 Dec 2022 22:41:40 +0100 Subject: [PATCH] optimized api paths --- html/index.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/html/index.html b/html/index.html index e56ef9d..e471fe7 100644 --- a/html/index.html +++ b/html/index.html @@ -208,7 +208,7 @@ }, methods: { loadPresets() { - this.$http.get('/api/deliveryPresets') + this.$http.get('api/deliveryPresets') .then(response => { this.presetSearchItems = response.body.map(x => { return { text: x.name, @@ -218,7 +218,7 @@ }) }, loadConfig() { - this.$http.get('/config').then(response => { + this.$http.get('config').then(response => { const newConfig = response.body newConfig.regions = newConfig.regions.map((x) => { x._id = btoa(JSON.stringify(x)) @@ -234,9 +234,9 @@ delete x._id return x }) - this.$http.post('/config', storeConfig).then(response => { + this.$http.post('config', storeConfig).then(response => { }) - .then(this.$http.post('/restart')) + .then(this.$http.post('restart')) .then(() => { document.body.style = 'display:none' setTimeout(() => window.location.reload(), 1e3)