Opensearch dashboards.irouter
Home > opensearch-dashboards > IRouter
IRouter interface
Registers route handlers for specified resource path and method. See RouteConfig and RequestHandler for more information about arguments to route registrations.
Signature:
export interface IRouter
Properties
| Property | Type | Description |
|---|---|---|
| delete | RouteRegistrar<'delete'> | Register a route handler for DELETE request. |
| get | RouteRegistrar<'get'> | Register a route handler for GET request. |
| handleLegacyErrors | RequestHandlerWrapper | Wrap a router handler to catch and converts legacy boom errors to proper custom errors. |
| patch | RouteRegistrar<'patch'> | Register a route handler for PATCH request. |
| post | RouteRegistrar<'post'> | Register a route handler for POST request. |
| put | RouteRegistrar<'put'> | Register a route handler for PUT request. |
| routerPath | string | Resulted path |