diff --git a/client/src/api/schema/fetcher.ts b/client/src/api/schema/fetcher.ts deleted file mode 100644 index 0d9ca29d294b..000000000000 --- a/client/src/api/schema/fetcher.ts +++ /dev/null @@ -1,9 +0,0 @@ -import createClient from "openapi-fetch"; - -import { getAppRoot } from "@/onload/loadConfig"; - -import { type paths as GalaxyApiPaths } from "./schema"; - -export { type GalaxyApiPaths }; - -export const client = createClient({ baseUrl: getAppRoot(undefined, true) }); diff --git a/client/src/api/schema/index.ts b/client/src/api/schema/index.ts index 712184503824..b9850fa31e6d 100644 --- a/client/src/api/schema/index.ts +++ b/client/src/api/schema/index.ts @@ -1,2 +1,9 @@ -export { client, type GalaxyApiPaths } from "./fetcher"; -export { type components } from "./schema"; +import createClient from "openapi-fetch"; + +import { getAppRoot } from "@/onload/loadConfig"; + +import { type components, type paths as GalaxyApiPaths } from "./schema"; + +export { type components, type GalaxyApiPaths }; + +export const client = createClient({ baseUrl: getAppRoot(undefined, true) });