Local modifications to ClusterLabs/Anvil by Alteeve
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
/* eslint-disable @typescript-eslint/no-explicit-any */ |
|
const putFetch = <T>(uri: string, data: T): Promise<any> => |
|
fetch(uri, { |
|
method: 'PUT', |
|
headers: { |
|
'Content-Type': 'application/json', |
|
}, |
|
body: JSON.stringify(data), |
|
}); |
|
|
|
export default putFetch;
|
|
|