- minor bugfixes

- added developer modal for viewing app data
This commit is contained in:
2025-12-12 12:18:17 +00:00
parent b38fbe132b
commit 3fbafbbcc7
10 changed files with 163 additions and 9 deletions

View File

@@ -0,0 +1,17 @@
import { useQuery } from "@tanstack/react-query";
import { CAMBASE } from "../utils/config";
const fetchVersions = async () => {
const response = await fetch(`${CAMBASE}/api/versions`);
if (!response.ok) throw new Error("Cannot get Versions");
return response.json();
};
export const useGetVersions = () => {
const versionsQuery = useQuery({
queryKey: ["getversions"],
queryFn: fetchVersions,
});
return { versionsQuery };
};