diff options
author | Indrajith K L | 2017-11-02 15:47:14 +0530 |
---|---|---|
committer | Indrajith K L | 2017-11-02 15:47:14 +0530 |
commit | a7ccf2688f90f28754b8c61fa0b712d6465d2796 (patch) | |
tree | 7c1d7aa19a9ab5349078b0a84e7d4b6e588d2de5 /src/http.js | |
parent | 70a7e6c3c2019346ea8ad5c52feb464efa0531e5 (diff) | |
download | es6-backbone-a7ccf2688f90f28754b8c61fa0b712d6465d2796.tar.gz es6-backbone-a7ccf2688f90f28754b8c61fa0b712d6465d2796.tar.bz2 es6-backbone-a7ccf2688f90f28754b8c61fa0b712d6465d2796.zip |
HTTP - Axios integrated
Diffstat (limited to 'src/http.js')
-rw-r--r-- | src/http.js | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/http.js b/src/http.js new file mode 100644 index 0000000..355efb2 --- /dev/null +++ b/src/http.js @@ -0,0 +1,14 @@ +import axios from 'axios'; + +class Http { + constructor() { + this.service = axios.create(); + } + + set config(configOptions) { + this.service = axios.create(configOptions); + } +} + + +export default new Http(); |