fix axios env api path

This commit is contained in:
2020-07-14 22:01:01 +02:00
parent 351d321375
commit 5052e2b60e
+2 -2
View File
@@ -13,10 +13,10 @@ import axios from 'axios'
// let path = 'http://dev.api.gdp.fr'
// let path = 'http://localhost:8984'
// const
let path = 'http://' + window.location.hostname + (window.env === 'prod' ? '/api' : ':8984')
// let path = 'http://' + window.location.hostname + (window.env === 'prod' ? '/api' : ':8984')
export const REST = axios.create({
baseURL: path,
baseURL: 'http://' + window.location.hostname + (window.env === 'prod' ? '/api' : ':8984'),
// withCredentials: true,
crossorigin: true,
headers: {