import { get } from "./client";
import { ENDPOINTS } from "./endpoints";
import type { HealthResponse } from "../types/server";

export async function fetchHealth(): Promise<HealthResponse> {
  return get<HealthResponse>(ENDPOINTS.health);
}
