Files
wild-web-app/src/hooks/useHealth.ts
2025-10-12 17:44:54 +00:00

13 lines
292 B
TypeScript

import { useMutation } from '@tanstack/react-query';
import { apiService } from '../services/api-legacy';
interface HealthResponse {
service: string;
status: string;
}
export const useHealth = () => {
return useMutation<HealthResponse>({
mutationFn: apiService.getHealth,
});
};