8 lines
242 B
TypeScript
8 lines
242 B
TypeScript
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);
|
|
}
|