mirror of
https://github.com/khairul169/garage-webui.git
synced 2025-08-16 11:29:32 +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:
parent
b2bc905e3c
commit
c7d3d224ba
@ -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"),
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user