MCPcopy Create free account
hub / github.com/omkarcloud/botasaurus / setApiBasePath

Method setApiBasePath

js/botasaurus-server-js/src/api-config.ts:929–931  ·  view source on GitHub ↗

* Sets the base path to be prefixed for all API routes. * Useful for mounting the API under a specific subpath like `/v1`. * @param {string} path - The base path to prefix (e.g., "/v1") * @example * ApiConfig.setApiBasePath("/v1"); // All routes will now be prefixed with /v1

(path: string)

Source from the content-addressed store, hash-verified

927 * ApiConfig.setApiBasePath("/v1"); // All routes will now be prefixed with /v1
928 */
929 static setApiBasePath(path: string): void {
930 this.apiBasePath = cleanBasePath(path) as any;
931 }
932
933 /**
934 * Adds an alias for a specific scraper's direct call route bypassing Task System.

Callers

nothing calls this directly

Calls 1

cleanBasePathFunction · 0.90

Tested by

no test coverage detected