10 lines
230 B
TypeScript
10 lines
230 B
TypeScript
import createClient from "openapi-fetch";
|
|
|
|
import { apiBaseUrl } from "./config";
|
|
import type { paths } from "./generated/schema";
|
|
|
|
export const apiClient = createClient<paths>({
|
|
baseUrl: apiBaseUrl,
|
|
credentials: "include",
|
|
});
|