Blame view

src/Services/http.js 359 Bytes
03dcbf0c1   Neeraj Sharma   fix all api and r...
1
2
  import axios from 'axios'
  import store from '@/store/store'
68d742034   Neeraj Sharma   implement new des...
3
  const baseDomain = "http://15.206.52.174:8001/v1";
29ac0dbb2   Neeraj Sharma   something changes
4
5
  
  const baseURL = `${baseDomain}`;
03dcbf0c1   Neeraj Sharma   fix all api and r...
6
7
  export default () => {
      return axios.create({
68d742034   Neeraj Sharma   implement new des...
8
9
          // baseURL: 'http://192.168.0.150:3002/v1',
          baseURL,
03dcbf0c1   Neeraj Sharma   fix all api and r...
10
11
          headers: {
              Authorization: `Bearer ${store.state.token}`
04165779e   Neeraj Sharma   implement parents...
12
          }
03dcbf0c1   Neeraj Sharma   fix all api and r...
13
      })
04165779e   Neeraj Sharma   implement parents...
14
  }