From 6020620ba933d487a3fb91f98ac1e2e502c515c1 Mon Sep 17 00:00:00 2001 From: cheetah Date: Mon, 12 Dec 2022 22:38:01 +0100 Subject: [PATCH] optimized api paths --- html/index.html | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/html/index.html b/html/index.html index b62af96..97baed4 100644 --- a/html/index.html +++ b/html/index.html @@ -128,7 +128,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, @@ -138,7 +138,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)) @@ -148,7 +148,7 @@ }, response => { }) - this.$http.get('/Regionalschl_ssel_2022-09-30.json').then(response => { + this.$http.get('Regionalschl_ssel_2022-09-30.json').then(response => { console.log(response.body.daten) this.regionsSearchItems = response.body.daten.map(x => { return { @@ -165,9 +165,9 @@ delete a._id return a }) - 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)