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",
    },
})
