mirror of
https://github.com/khairul169/garage-webui.git
synced 2025-09-18 11:09:31 +07:00
11 lines
275 B
TypeScript
11 lines
275 B
TypeScript
import api from "@/lib/api";
|
|
import { GetHealthResult } from "./types";
|
|
import { useQuery } from "@tanstack/react-query";
|
|
|
|
export const useNodesHealth = () => {
|
|
return useQuery({
|
|
queryKey: ["health"],
|
|
queryFn: () => api.get<GetHealthResult>("/v1/health"),
|
|
});
|
|
};
|