MCPcopy Create free account
hub / github.com/Tong89/smartNode / constructor

Method constructor

frontend/src/api/client.ts:69–72  ·  view source on GitHub ↗
(baseUrl?: string, defaultTimeoutMs = DEFAULT_TIMEOUT_MS)

Source from the content-addressed store, hash-verified

67 private _defaultTimeoutMs: number;
68
69 constructor(baseUrl?: string, defaultTimeoutMs = DEFAULT_TIMEOUT_MS) {
70 this._baseUrl = baseUrl !== undefined ? baseUrl : resolveApiBase();
71 this._defaultTimeoutMs = defaultTimeoutMs;
72 }
73
74 /** Current base URL (without trailing slash). */
75 get baseUrl(): string {

Callers

nothing calls this directly

Calls 1

resolveApiBaseFunction · 0.70

Tested by

no test coverage detected