12 lines
No EOL
280 B
JavaScript
12 lines
No EOL
280 B
JavaScript
import axios from 'axios'
|
|
|
|
export default() => {
|
|
return axios.create({
|
|
baseURL: `http://localhost:8000/api/`,
|
|
withCredentials: false,
|
|
headers: {
|
|
'Accept': 'application/json',
|
|
'Content-Type': 'application/json'
|
|
}
|
|
})
|
|
} |