mirror of
https://github.com/elastic/kibana.git
synced 2025-04-25 02:09:32 -04:00
1.7 KiB
1.7 KiB
Home > kibana-plugin-server > BasePath
BasePath class
Access or manipulate the Kibana base path
Signature:
export declare class BasePath
Properties
Property | Modifiers | Type | Description |
---|---|---|---|
get | (request: LegacyRequest | KibanaRequest<unknown, unknown, unknown>) => string |
returns basePath value, specific for an incoming request. |
|
prepend | (path: string) => string |
Prepends path with the basePath. |
|
remove | (path: string) => string |
Removes the prepended basePath from the path . |
|
serverBasePath | string |
returns the server's basePathSee BasePath.get for getting the basePath value for a specific request | |
set | (request: LegacyRequest | KibanaRequest<unknown, unknown, unknown>, requestSpecificBasePath: string) => void |
sets basePath value, specific for an incoming request. |
Remarks
The constructor for this class is marked as internal. Third-party code should not call the constructor directly or create subclasses that extend the BasePath
class.