Added the PATCH request to the RequestUtil.js

This commit is contained in:
2023-01-01 04:23:46 +01:00
parent 7b6eb1141d
commit fc8782bc0b

View File

@ -26,6 +26,11 @@ export const putRequest = async (path, body, headers = {}) => {
return await request(path, "PUT", body, headers); return await request(path, "PUT", body, headers);
} }
// Run a PATCH request and post some values
export const patchRequest = async (path, body, headers = {}) => {
return await request(path, "PATCH", body, headers);
}
// Run a POST request and post some values // Run a POST request and post some values
export const postRequest = async (path, body, headers = {}) => { export const postRequest = async (path, body, headers = {}) => {
return await request(path, "POST", body, headers); return await request(path, "POST", body, headers);