From c8da68da062e77e87368af82b2eb797f45bd4f52 Mon Sep 17 00:00:00 2001 From: davelopez <46503462+davelopez@users.noreply.github.com> Date: Tue, 30 Jul 2024 15:59:02 +0200 Subject: [PATCH] Simplify client api exports --- client/src/api/schema/fetcher.ts | 9 --------- client/src/api/schema/index.ts | 11 +++++++++-- 2 files changed, 9 insertions(+), 11 deletions(-) delete mode 100644 client/src/api/schema/fetcher.ts 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) });