10 lines
237 B
TypeScript
10 lines
237 B
TypeScript
import { treaty } from "@elysia/eden"
|
|
import type { API } from "@blade-and-brawn/api"
|
|
import { env } from "$env/dynamic/public"
|
|
|
|
export const api = treaty<API>(env.PUBLIC_API_URL, {
|
|
fetch: {
|
|
credentials: "include",
|
|
},
|
|
})
|