Files
dashboard-desaplus-noc/src/utils/api-client.ts
2026-02-25 15:44:26 +08:00

11 lines
263 B
TypeScript

import createClient from "openapi-fetch";
import type { paths } from "../../generated/api";
import { VITE_PUBLIC_URL } from "./env";
const baseUrl = VITE_PUBLIC_URL;
export const apiClient = createClient<paths>({
baseUrl: baseUrl,
credentials: "include",
});