Home > kibana-plugin-server > Router
Signature:
export declare class Router
Constructor | Modifiers | Description |
---|---|---|
(constructor)(path) | Constructs a new instance of the Router class |
Property | Modifiers | Type | Description |
---|---|---|---|
path | string |
Method | Modifiers | Description |
---|---|---|
delete(route, handler) | Register a DELETE request with the router |
|
get(route, handler) | Register a GET request with the router |
|
getRoutes() | Returns all routes registered with the this router. | |
post(route, handler) | Register a POST request with the router |
|
put(route, handler) | Register a PUT request with the router |