mirror of
https://github.com/balzack/databag.git
synced 2025-02-13 03:59:16 +00:00
9 lines
314 B
JavaScript
9 lines
314 B
JavaScript
|
import { checkResponse, fetchWithTimeout } from './fetchUtil';
|
||
|
|
||
|
export async function setCardCloseMessage(server, message) {
|
||
|
let status = await fetchWithTimeout(`https://${server}/contact/closeMessage`, { method: 'PUT', body: JSON.stringify(message) });
|
||
|
checkResponse(status);
|
||
|
return await status.json();
|
||
|
}
|
||
|
|