diff --git a/admin/src/common/utils/RequestUtil.js b/admin/src/common/utils/RequestUtil.js index d68fbde..3b701ff 100644 --- a/admin/src/common/utils/RequestUtil.js +++ b/admin/src/common/utils/RequestUtil.js @@ -21,6 +21,11 @@ export const jsonRequest = async (path, headers = {}) => { return (await request(path, "GET", null, headers)).json(); } +// Run a PUT request and post some values +export const putRequest = async (path, body, headers = {}) => { + return await request(path, "PUT", body, headers); +} + // Run a POST request and post some values export const postRequest = async (path, body, headers = {}) => { return await request(path, "POST", body, headers);