-
-
Save Nilanth/a15e1334bba54ba898129c8e4f1d38ec to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export function getRequest(URL) { | |
return axiosClient.get(`/${URL}`).then(response => response); | |
} | |
export function postRequest(URL, payload) { | |
return axiosClient.post(`/${URL}`, payload).then(response => response); | |
} | |
export function patchRequest(URL, payload) { | |
return axiosClient.patch(`/${URL}`, payload).then(response => response); | |
} | |
export function deleteRequest(URL) { | |
return axiosClient.delete(`/${URL}`).then(response => response); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment