HTTP - Axios integrated

This commit is contained in:
Indrajith K L
2017-11-02 15:47:14 +05:30
parent 70a7e6c3c2
commit a7ccf2688f
5 changed files with 46 additions and 4 deletions

14
src/http.js Normal file
View File

@@ -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();