Blame view

src/Services/http.js 255 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({
e3e2a04c6   Neeraj Sharma   first commit
6
          baseURL:'http://192.168.2.203:8001/v1',
03dcbf0c1   Neeraj Sharma   fix all api and r...
7
8
9
10
11
          headers: {
              Authorization: `Bearer ${store.state.token}`
            }
      })
  }