|
|
@ -1,13 +1,18 @@ |
|
|
|
import axios from 'axios'; |
|
|
|
|
|
|
|
let locale = "en" |
|
|
|
if (typeof window !== 'undefined') { |
|
|
|
|
|
|
|
locale = localStorage.getItem('locale') || 'en'; |
|
|
|
} |
|
|
|
const http = axios.create({ |
|
|
|
baseURL: 'https://habibapp.com', |
|
|
|
// headers: {
|
|
|
|
// 'Authorization': 'Token 36d8be53bed5cab8027b66952b3f2c334cdca664',
|
|
|
|
// },
|
|
|
|
params :{ |
|
|
|
language_code:"en" |
|
|
|
language_code: locale |
|
|
|
} |
|
|
|
}); |
|
|
|
|
|
|
|
export default http; |
|
|
|
export default http; |