13 lines
292 B
TypeScript
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,
|
|
});
|
|
}; |