import ky from "ky"; type ApiHealth = { online: boolean; }; /** * Gets the health of the api server. * * @param url the url of the api */ export async function getApiHealth(url: string): Promise { try { await ky.get(url); return { online: true, }; } catch { return { online: false, }; } }