eths / source /frontend /src /lib /api.ts
Ethscriptions's picture
Daily English Live Photos: 2 sets x 9 live photos (static site)
8ea8b32 verified
Raw History Blame Contribute Delete
108 Bytes
export function api(path: string) {
return `${import.meta.env.BASE_URL}api/${path.replace(/^\/+/, '')}`
}