Skip to content

Commit

Permalink
Simplify client api exports
Browse files Browse the repository at this point in the history
  • Loading branch information
davelopez committed Jul 30, 2024
1 parent 92c71c8 commit c8da68d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 11 deletions.
9 changes: 0 additions & 9 deletions client/src/api/schema/fetcher.ts

This file was deleted.

11 changes: 9 additions & 2 deletions client/src/api/schema/index.ts
Original file line number Diff line number Diff line change
@@ -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<GalaxyApiPaths>({ baseUrl: getAppRoot(undefined, true) });

0 comments on commit c8da68d

Please sign in to comment.