mirror of
https://github.com/balzack/databag.git
synced 2025-02-16 05:29:15 +00:00
9 lines
292 B
JavaScript
9 lines
292 B
JavaScript
import { checkResponse, fetchWithTimeout } from './fetchUtil';
|
|
|
|
export async function getNodeAccounts(server, token) {
|
|
let accounts = await fetchWithTimeout(`https://${server}/admin/accounts?token=${token}`, { method: 'GET' });
|
|
checkResponse(accounts);
|
|
return await accounts.json();
|
|
}
|
|
|