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