mirror of
https://github.com/khairul169/garage-webui.git
synced 2026-09-18 18:27:39 +07:00
feat: project init
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
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"),
|
||||
});
|
||||
};
|
||||
Reference in New Issue
Block a user