text: import axios from 'axios'
  
  let $axios = axios.create({
    baseURL: '/',
    timeout: 500000,
    headers: {'Content-Type': 'application/json'}
  })
  
  // Request Interceptor
  $axios.interceptors.request.use(function (config) {
    config.headers['Authorization'] = 'Fake Token'
    return config
  })
  
  // Response Interceptor to handle and log errors
  $axios.interceptors.response.use(function (response) {
    return response
  }, function (error) {
    // Handle Error
    console.log(error)
    return Promise.reject(error)
  })
  
  export default {
    submit (data) {
      return $axios.post(`submit`, data)
        .then(response => response.data)
    },
    register (data) {
      return $axios.post(`register`, data)
        .then(response => response.data)
    },
    fetchResource () {
      return $axios.get(`resource/xxx`)
        .then(response => response.data)
    },
  
    fetchSecureResource () {
      return $axios.get(`secure-resource/zzz`)
        .then(response => response.data)
    }
  }
  