import Axios from 'axios';
import { getAccessToken, getMergedConfig } from './apiHelpers';
export const apiGet = async (baseURL, url, config = {}) => {
    const accessToken = await getAccessToken();
    const mergedConfig = getMergedConfig(accessToken, Object.assign({ method: 'get' }, config));
    const response = await Axios(Object.assign({ url: `${baseURL}/${url}` }, mergedConfig));
    return response.data;
};
//# sourceMappingURL=apiClient.js.map