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

8 lines
251 B
JavaScript
Raw Normal View History

2022-09-07 07:32:06 +00:00
import { checkResponse, fetchWithTimeout } from './fetchUtil';
2022-09-13 22:15:49 +00:00
export async function setNodeStatus(server, token) {
let status = await fetchWithTimeout(`http://${server}/admin/status?token=${token}`, { method: 'PUT' });
2022-09-07 07:32:06 +00:00
checkResponse(status);
}