feat: initial prototype

This commit is contained in:
2026-02-13 15:52:13 +07:00
parent 134351b326
commit e8dbefde43
140 changed files with 12390 additions and 1369 deletions

12
apps/web/lib/api.ts Normal file
View File

@@ -0,0 +1,12 @@
import { treaty } from "@elysiajs/eden";
import type { App } from "@minikura/backend";
const baseUrl = process.env.NEXT_PUBLIC_API_URL || "http://localhost:3000";
export const api = treaty<App>(baseUrl, {
fetch: {
credentials: "include",
},
});
export type Api = typeof api;