amati/apps/frontend/src/honoClient.ts
2024-05-05 13:38:09 +07:00

11 lines
234 B
TypeScript

import { hc } from "hono/client";
import { AppType } from "backend";
const client = hc<AppType>("http://localhost:3000", {
headers: {
Authorization: `Bearer ${localStorage.getItem("accessToken")}`,
},
});
export default client;