mirror of
https://github.com/khairul169/garage-webui.git
synced 2026-11-03 07:10:47 +07:00
fix: update API endpoint for cluster status query in garage v2.0.0(from /v1/status to /v2/GetClusterStatus
This commit is contained in:
@@ -14,7 +14,7 @@ import {
|
|||||||
export const useClusterStatus = () => {
|
export const useClusterStatus = () => {
|
||||||
return useQuery({
|
return useQuery({
|
||||||
queryKey: ["status"],
|
queryKey: ["status"],
|
||||||
queryFn: () => api.get<GetStatusResult>("/v1/status"),
|
queryFn: () => api.get<GetStatusResult>("/v2/GetClusterStatus"),
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user