Blame view

src/Services/http.js 312 Bytes
03dcbf0c1   Neeraj Sharma   fix all api and r...
1
2
3
4
5
  import axios from 'axios'
  import store from '@/store/store'
  
  export default () => {
      return axios.create({
79006bdcb   Neeraj Sharma   uplaod images all...
6
             // baseURL:'http://192.168.4.220:3002/v1',
fe582921b   Neeraj Sharma   testing api-url i...
7
             baseURL:'http://139.59.58.160:8001/v1',
03dcbf0c1   Neeraj Sharma   fix all api and r...
8
9
10
11
12
          headers: {
              Authorization: `Bearer ${store.state.token}`
            }
      })
  }