kibana/docs/development/core/server/kibana-plugin-server.basepath.md
Matthew Kime 6ca9018cf6
uiSettings - use validation field for image field maxSize (#54522) (#54641)
* uiSettings - use validation field for image field maxSize
2020-01-13 15:48:38 -06:00

1.7 KiB

Home > kibana-plugin-server > BasePath

BasePath class

Access or manipulate the Kibana base path

Signature:

export declare class BasePath 

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.

Properties

Property Modifiers Type Description
get (request: LegacyRequest | KibanaRequest<unknown, unknown, unknown, any>) => 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, any>, requestSpecificBasePath: string) => void sets basePath value, specific for an incoming request.