Make api url configurable in index.html

This commit is contained in:
kolaente 2020-05-05 22:44:58 +02:00
parent 1bad154da6
commit d46faec23d
Signed by untrusted user who does not match committer: konrad
GPG key ID: F40E70337AB24C9B
7 changed files with 17 additions and 15 deletions

View file

@ -1,6 +1,5 @@
import axios from 'axios'
let config = require('../../public/config.json')
export const HTTP = axios.create({
baseURL: config.VIKUNJA_API_BASE_URL
baseURL: window.API_URL
})