From 73cc296a49bbb26d6a1d9aadac1bddf95480e1c3 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 *