Skip to content

Latest commit

 

History

History
26 lines (18 loc) · 1.78 KB

kibana-plugin-core-server.irouter.md

File metadata and controls

26 lines (18 loc) · 1.78 KB

Home > kibana-plugin-core-server > 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 <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