Blame view

src/Services/http.js 306 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({
8bb178441   Neeraj Sharma   implemnt api in s...
6
          // baseURL: 'http://192.168.2.221:3002/v1',
7adc8fc47   Neeraj Sharma   fix live api url
7
          baseURL: 'http://13.234.251.173:8001/v1',
03dcbf0c1   Neeraj Sharma   fix all api and r...
8
9
          headers: {
              Authorization: `Bearer ${store.state.token}`
04165779e   Neeraj Sharma   implement parents...
10
          }
03dcbf0c1   Neeraj Sharma   fix all api and r...
11
      })
04165779e   Neeraj Sharma   implement parents...
12
  }