Home > kibana-plugin-core-server > IRouter
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
Property | Type | Description |
---|---|---|
delete | RouteRegistrar<'delete'> |
Register a route handler for DELETE request. |
get | RouteRegistrar<'get'> |
Register a route handler for GET request. |
handleLegacyErrors | <P, Q, B>(handler: RequestHandler<P, Q, B>) => RequestHandler<P, Q, B> |
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 |