feat: setup openapi libs for landing
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
import type { paths } from '@/openapi-types';
|
||||
import createClient from 'openapi-fetch';
|
||||
|
||||
export const fetcher = createClient<paths>({
|
||||
baseUrl: process.env.NEXT_PUBLIC_API_URL ?? 'https://api.imphnen.dev',
|
||||
});
|
||||
@@ -0,0 +1,8 @@
|
||||
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 ?? 'https://api.imphnen.dev',
|
||||
});
|
||||
export const rpc = createClient(fetchClient);
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user