import api from './api';
import type { HealthResponse } from '../types';

export type { HealthResponse };

// GET /api/health
export const fetchHealthStatus = async (): Promise<HealthResponse> => {
  const response = await api.get<HealthResponse>('/health');
  return response.data;
};
