mirror of
https://github.com/balzack/databag.git
synced 2025-02-19 14:39:21 +00:00
9 lines
286 B
JavaScript
9 lines
286 B
JavaScript
import { checkResponse, fetchWithTimeout } from './fetchUtil';
|
|
|
|
export async function getAccountStatus(server, token) {
|
|
let status = await fetchWithTimeout(`https://${server}/account/status?agent=${token}`, { method: 'GET' });
|
|
checkResponse(status);
|
|
return await status.json()
|
|
}
|
|
|