diff options
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(); |