[mod] make production webapp work as well

This commit is contained in:
2020-05-03 16:06:32 +02:00
parent e745668f66
commit e99f12d233
3 changed files with 15 additions and 4 deletions

View File

@@ -19,7 +19,7 @@
}
},
async created() {
const dwatcherAPI = api('http://localhost:10501')
const dwatcherAPI = api()
this.watchers = await dwatcherAPI.getStatus()
},

View File

@@ -1,9 +1,9 @@
import * as axios from "axios";
export function api(baseURL) {
export function api() {
const instance = axios.default.create({
baseURL
baseURL: __API__
})
return {