http.js 254 Bytes
import axios from 'axios'
import store from '@/store/store'

export default () => {
    return axios.create({
        baseURL:'http://18.208.28.55:3000/v1',
        headers: {
            Authorization: `Bearer ${store.state.token}`
          }
    })
}