Added basic classes to handle http/auth/routing
This commit is contained in:
parent
f5f5c6f79c
commit
fe86ce2fa8
8 changed files with 167 additions and 20 deletions
6
src/http-common/index.js
Normal file
6
src/http-common/index.js
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
import axios from 'axios'
|
||||
let config = require('../../siteconfig.json')
|
||||
|
||||
export const HTTP = axios.create({
|
||||
baseURL: config.API_URL
|
||||
})
|
||||
Reference in a new issue