import { api } from './schema.gen';

// Initialize the Zodios client with the base URL
export const apiClient = api;

// Configure base URL (Zodios doesn't strictly require it if paths are relative, but good practice)
// Note: api variable from schema.gen.ts is already a Zodios instance with endpoints.
// But we might need to set the baseURL.
// Actually, Zodios constructor takes (baseUrl, endpoints).
// schema.gen.ts exports `export const api = new Zodios(endpoints);` which implies no base URL.
// We should probably use the factory function if available, or mutate axios instance.

// Let's look at schema.gen.ts again.
// export function createApiClient(baseUrl: string, options?: ZodiosOptions) {
//   return new Zodios(baseUrl, endpoints, options);
// }

// So we should use createApiClient.
import { createApiClient } from './schema.gen';

export const client = createApiClient('/');
