2019-05-22 12:51:57 +00:00
|
|
|
import axios from 'axios'
|
|
|
|
|
|
|
|
export default() => {
|
|
|
|
return axios.create({
|
2019-08-11 19:04:15 +00:00
|
|
|
//baseURL: `http://127.0.0.1:8000/api/`,
|
2019-11-27 10:38:41 +00:00
|
|
|
//baseURL: process.env.VUE_APP_API_URL+`api/`,
|
|
|
|
baseURL: localStorage.getItem("apiURL"),
|
2019-05-22 12:51:57 +00:00
|
|
|
withCredentials: false,
|
|
|
|
headers: {
|
|
|
|
'Accept': 'application/json',
|
|
|
|
'Content-Type': 'application/json'
|
|
|
|
}
|
|
|
|
})
|
2019-08-11 19:04:15 +00:00
|
|
|
}
|