feat: topology, and improves handling

This commit is contained in:
2026-02-17 18:12:02 +07:00
parent e8dbefde43
commit d14f043e7c
145 changed files with 4213 additions and 2861 deletions

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;