change api url definition, using localhost and changing port

needs CORS everywhere in firefox to work
This commit is contained in:
2019-09-18 11:38:12 +02:00
parent 99aad2e6a1
commit 30df02ba39
+4 -2
View File
@@ -1,7 +1,9 @@
import axios from 'axios'
// let path = 'http://' + window.location.hostname + ':8984'
let path = 'http://dev.api.gdp.fr'
// TODO: make this one as settings (or find an other solution)
let path = 'http://' + window.location.hostname + ':8984'
// let path = 'http://dev.api.gdp.fr'
// let path = 'http://localhost:8984'
export const REST = axios.create({
baseURL: path + '/gdp',