blob: 00273ec375addc41270199e8678c7e538b995eae (
plain)
1
2
3
4
5
6
|
import createClient from "openapi-fetch";
import type {paths} from "./api-schema.js";
const apiRoot = import.meta.env.DEV ? "//localhost:8080/api" : "/api";
export const client = createClient<paths>({baseUrl: apiRoot});
|