Compare commits

..

No commits in common. "b9647ce36e8c2ebafc26aef72fe4655ceca92d1d" and "8c4b9ceb9de6bee6bdb474f0a2b72fb9ce1a356d" have entirely different histories.

View File

@ -65,28 +65,4 @@ function callApi(
);
}
function postApi(
endpoint: string,
data: any,
onSuccessHandler?: (response: AxiosResponse) => void,
onErrorHandler?: (error: AxiosError) => void
): void {
axiosInstance
.post(endpoint, data)
.then(onSuccessHandler ?? defaultApiSuccessHandler)
.catch(onErrorHandler ?? defaultApiErrorHandler);
}
function deleteApi(
endpoint: string,
onSuccessHandler?: (response: AxiosResponse) => void,
onErrorHandler?: (error: AxiosError) => void
): void {
axiosInstance
.delete(endpoint)
.then(onSuccessHandler ?? defaultApiSuccessHandler)
.catch(onErrorHandler ?? defaultApiErrorHandler);
}
export { callApi, postApi, deleteApi };
export { callApi };