Skip to content

Instantly share code, notes, and snippets.

@brybrophy
Last active October 26, 2017 20:05
Show Gist options
  • Save brybrophy/38bf3128b50d88def20191793948db7c to your computer and use it in GitHub Desktop.
Save brybrophy/38bf3128b50d88def20191793948db7c to your computer and use it in GitHub Desktop.
import ApiCore from 'axios-core-api';
import axiosConfig from './axiosConfig.js';
class BaseApi {
constructor(apiCore, basePath) {
this._apiCore = apiCore;
this._basePath = basePath;
}
}
const apiCore = new ApiCore(axiosConfig);
const basePath = 'https://www.example.org/api';
const baseApi = new BaseApi(apiCore, basePath);
export default baseApi;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment