Files
zeekay d3e091aa97 Serve and call every route under /v1
The resource API is /v1/rest and the operation API is /v1/rpc: named
for what they are, so neither shadows the other, and the v2-beta alias
is gone. Hanzo IAM returns to /auth/callback, the callback path IAM
already derives for this host, so sign-in needs no IAM change.

Claude-Session: https://claude.ai/code/session_01TUxvfuta1Z44KVNYuAz71F
2026-09-24 14:52:07 -07:00

10 lines
231 B
TypeScript

import { NEXT_PUBLIC_WEBAPP_URL } from '../constants/app';
export const formatAvatarUrl = (imageId?: string | null) => {
if (!imageId) {
return undefined;
}
return `${NEXT_PUBLIC_WEBAPP_URL()}/v1/avatar/${imageId}`;
};