MCPcopy Create free account
hub / github.com/GetStream/stream-js / enrichUrl

Method enrichUrl

src/client.ts:534–536  ·  view source on GitHub ↗

* Combines the base url with version and the relative url * @method enrichUrl * @memberof StreamClient.prototype * @private * @param {string} relativeUrl * @param {string} [serviceName] * @return {string}

(relativeUrl: string, serviceName?: string)

Source from the content-addressed store, hash-verified

532 * @return {string}
533 */
534 enrichUrl(relativeUrl: string, serviceName?: string) {
535 return `${this.getBaseUrl(serviceName)}${this.version}/${relativeUrl}`;
536 }
537
538 replaceReactionOptions = (options: {
539 rankingVars?: string | Record<string, string | number>;

Callers 4

enrichKwargsMethod · 0.95
test.tsFile · 0.80
client_test.jsFile · 0.80
client_test.jsFile · 0.80

Calls 1

getBaseUrlMethod · 0.95

Tested by

no test coverage detected