From a7ccf2688f90f28754b8c61fa0b712d6465d2796 Mon Sep 17 00:00:00 2001 From: Indrajith K L Date: Thu, 2 Nov 2017 15:47:14 +0530 Subject: HTTP - Axios integrated --- src/http.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 src/http.js (limited to 'src/http.js') 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(); -- cgit v1.2.3