Blame view

src/Services/http.js 254 Bytes
03dcbf0c1   Neeraj Sharma   fix all api and r...
1
2
3
4
5
6
7
8
9
10
11
  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}`
            }
      })
  }