Files
imphnen-frontend-service/apps/landing/src/lib/rpc.ts
T

9 lines
283 B
TypeScript
Raw Normal View History

import type { paths } from '@/openapi-types';
import createFetchClient from 'openapi-fetch';
import createClient from 'openapi-react-query';
const fetchClient = createFetchClient<paths>({
baseUrl: process.env.NEXT_PUBLIC_API_URL,
});
export const rpc = createClient(fetchClient);