You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

9 lines
424 B
JavaScript

const http = {
requestHttp: location.host.indexOf('localhost:8080')!=-1 ||
location.host.indexOf('localhost:8081')!=-1 ||
location.host.indexOf('192.168.5.177:8080')!=-1 ||
location.host.indexOf('192.168.5.177:8081')!=-1 ?
'http://192.168.5.171:8080' : '/api',
token: `Bearer ${localStorage.getItem('token')}`
}
export default http