databag/app/mobile/src/api/setAccountSearchable.js

8 lines
292 B
JavaScript
Raw Normal View History

2022-09-07 07:32:06 +00:00
import { checkResponse, fetchWithTimeout } from './fetchUtil';
2022-09-14 19:18:16 +00:00
export async function setAccountSearchable(server, token, flag) {
let res = await fetchWithTimeout(`https://${server}/account/searchable?agent=${token}`, { method: 'PUT', body: JSON.stringify(flag) })
2022-09-07 07:32:06 +00:00
checkResponse(res);
}