diff --git a/src/api/configs.js b/src/api/configs.js index 8889ad0..bc6df8f 100644 --- a/src/api/configs.js +++ b/src/api/configs.js @@ -11,11 +11,15 @@ export async function fetchConfigs(apiConfig) { return await fetch(url + endpoint, init); } +// TODO support PUT /configs +// req body +// { Path: string } + export async function updateConfigs(apiConfig, o) { const { url, init } = getURLAndInit(apiConfig); return await fetch(url + endpoint, { ...init, - method: 'PUT', + method: 'PATCH', // mode: 'cors', body: JSON.stringify(o) });