elysia is the truth

This commit is contained in:
2025-08-08 22:44:39 -04:00
parent fb204e8869
commit 96df75972a
9 changed files with 252 additions and 111 deletions

View File

@@ -1,4 +1,5 @@
import { hc } from "hono/client";
import { type ApiType } from "../../server/src/api";
import { type Api } from "../../server/src/api";
import { treaty } from "@elysiajs/eden";
export default hc<ApiType>("http://localhost:5001/api");
const { api } = treaty<Api>("http://localhost:5001");
export default api;