Blame view

src/Services/http.js 360 Bytes
03dcbf0c1   Neeraj Sharma   fix all api and r...
1
2
  import axios from 'axios'
  import store from '@/store/store'
29ac0dbb2   Neeraj Sharma   something changes
3
4
5
  const baseDomain = "http://13.234.251.173:8001/v1";
  
  const baseURL = `${baseDomain}`;
03dcbf0c1   Neeraj Sharma   fix all api and r...
6
7
  export default () => {
      return axios.create({
d9bb52b5b   Neeraj Sharma   implement trello ...
8
          // baseURL: 'http://192.168.0.120:3002/v1',
29ac0dbb2   Neeraj Sharma   something changes
9
          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
  }