diff --git a/services/web/frontend/js/infrastructure/fetch-json.js b/services/web/frontend/js/infrastructure/fetch-json.js index c6318cc26a..7c50da79f1 100644 --- a/services/web/frontend/js/infrastructure/fetch-json.js +++ b/services/web/frontend/js/infrastructure/fetch-json.js @@ -13,6 +13,10 @@ export function postJSON(path, options) { return fetchJSON(path, { ...options, method: 'POST' }) } +export function putJSON(path, options) { + return fetchJSON(path, { ...options, method: 'PUT' }) +} + export function deleteJSON(path, options) { return fetchJSON(path, { ...options, method: 'DELETE' }) }