mirror of
https://github.com/YuzuZensai/Minikura.git
synced 2026-03-30 17:26:38 +00:00
13 lines
286 B
TypeScript
13 lines
286 B
TypeScript
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;
|