feat: setup openapi libs for landing

This commit is contained in:
arraysid
2025-05-27 02:03:01 +07:00
parent 9f25941a4a
commit b1d9a56dda
5 changed files with 2383 additions and 2 deletions
+6
View File
@@ -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',
});
+8
View File
@@ -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