- updated base for endpoints

- added loading states
- need to add new form for ftp type
This commit is contained in:
2025-11-27 09:43:09 +00:00
parent 97ff9a981d
commit 3c10ff82cb
8 changed files with 217 additions and 196 deletions

View File

@@ -1,7 +1,8 @@
import { useQuery } from "@tanstack/react-query";
import { CAMBASE } from "../../../utils/config";
const fetchData = async () => {
const response = await fetch(`http://100.115.148.59/api/system-health`);
const response = await fetch(`${CAMBASE}/api/system-health`);
if (!response.ok) throw new Error("Cannot get System overview");
return response.json();
};