first
This commit is contained in:
commit
8538ab969a
434 changed files with 44051 additions and 0 deletions
9
apps/web/modules/shared/lib/api-client.ts
Normal file
9
apps/web/modules/shared/lib/api-client.ts
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
import type { AppRouter } from "@repo/api";
|
||||
import { getBaseUrl } from "@repo/utils";
|
||||
import { hc } from "hono/client";
|
||||
|
||||
export const apiClient = hc<AppRouter>(getBaseUrl(), {
|
||||
init: {
|
||||
credentials: "include",
|
||||
},
|
||||
}).api;
|
||||
Loading…
Add table
Add a link
Reference in a new issue