MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / buildRestUrl

Function buildRestUrl

apps/kimi-web/src/api/config.ts:79–81  ·  view source on GitHub ↗
(origin: string, path: string)

Source from the content-addressed store, hash-verified

77
78// The real server serves everything (incl. healthz + ws) under the /api/v1 prefix.
79export function buildRestUrl(origin: string, path: string): string {
80 return `${origin}/api/v1${path.startsWith('/') ? path : `/${path}`}`;
81}
82
83export function buildWsUrl(origin: string, clientId: string): string {
84 const url = new URL(`${origin}/api/v1/ws`);

Callers 5

getBlobMethod · 0.90
postFormMethod · 0.90
requestMethod · 0.90
getFileDownloadUrlMethod · 0.90
getFileUrlMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected