feat: project init

This commit is contained in:
2024-08-14 15:36:25 +07:00
commit b0e5d53ee0
40 changed files with 4800 additions and 0 deletions
+10
View File
@@ -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"),
});
};