From fc8782bc0b242886ec50cc554bcd0298d4dce3e7 Mon Sep 17 00:00:00 2001 From: Mathias Wagner Date: Sun, 1 Jan 2023 04:23:46 +0100 Subject: [PATCH] Added the PATCH request to the RequestUtil.js --- admin/src/common/utils/RequestUtil.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/admin/src/common/utils/RequestUtil.js b/admin/src/common/utils/RequestUtil.js index 3b701ff..df891f0 100644 --- a/admin/src/common/utils/RequestUtil.js +++ b/admin/src/common/utils/RequestUtil.js @@ -26,6 +26,11 @@ export const putRequest = async (path, 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 export const postRequest = async (path, body, headers = {}) => { return await request(path, "POST", body, headers);