feat: setup openapi libs for landing

This commit is contained in:
arraysid committed 2025-05-27 02:03:01 +07:00
1 parent 9f25941a4a
commit b1d9a56dda
5 files changed
+2383 -2

No files matched your search

+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