From 1f6904043656597236b28bd5978643a939ffabbc Mon Sep 17 00:00:00 2001 From: Anthony Debucquoy Date: Tue, 5 Mar 2024 19:31:35 +0100 Subject: [PATCH] adding patch to restConsumer --- frontend/src/rest/restConsumer.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/frontend/src/rest/restConsumer.js b/frontend/src/rest/restConsumer.js index 2c240c6..25729bd 100644 --- a/frontend/src/rest/restConsumer.js +++ b/frontend/src/rest/restConsumer.js @@ -15,6 +15,10 @@ export async function restDelete(endPoint, data) { return await _rest(endPoint, {method: "DELETE", body: data}); } +export async function restPatch(endPoint, data) { + return await _rest(endPoint, {method: "PATCH", body: data}); +} + /** * backbone for the request made by the frontend *