ggez-banking-sdk
Version:
A Node.js package to handle GGEZ Banking API endpoints, Simplify the process of managing CRUD operations with this efficient and easy-to-use package.
15 lines (14 loc) • 456 B
JavaScript
import axios from "axios";
class BaseBlockchainService {
errorHandler;
axiosInstance;
constructor(config, errorHandler) {
this.errorHandler = errorHandler;
this.axiosInstance = axios.create({ baseURL: config.baseUrl });
this.axiosInstance.interceptors.response.use((res) => res, (err) => {
this.errorHandler(err);
return Promise.reject(err);
});
}
}
export { BaseBlockchainService };