refactor: refactor foundation

This commit is contained in:
2026-08-14 09:43:19 +03:00
parent 2e32d226d3
commit da585b157a
54 changed files with 4822 additions and 535 deletions
+5 -1
View File
@@ -1,8 +1,10 @@
import createClient from "openapi-fetch";
import createQueryClient from "openapi-react-query";
import { apiBaseUrl } from "./config";
import type { paths } from "./generated/schema";
const apiBaseUrl = import.meta.env.VITE_API_BASE_URL ?? "http://localhost:3000";
type AuthHandlers = {
accessToken: () => string | null;
refresh: () => Promise<boolean>;
@@ -56,3 +58,5 @@ export const apiClient = createClient<paths>({
credentials: "include",
fetch: authenticatedFetch,
});
export const apiQueryClient = createQueryClient(apiClient);