Monorepo for wisp.place. A static site hosting service built on top of the AT Protocol. wisp.place
at v1.0.0 277 B view raw
1import { treaty } from '@elysiajs/eden' 2 3import type { app } from '@server' 4 5// Use the current host instead of hardcoded localhost 6const apiHost = typeof window !== 'undefined' ? window.location.origin : 'http://localhost:8000' 7 8export const api = treaty<typeof app>(apiHost)