Bq
Constructor Summary
| Public Constructor | ||
| public |
|
|
Member Summary
| Public Members | ||
| public |
routes: {} |
|
Method Summary
| Public Methods | ||
| public |
route(path: string, route: Route): RouteHandler A helper method to work with the instance's internal |
|
| public |
Start the app server. |
|
| public |
The callback invoked by |
|
Public Constructors
public constructor() source
Public Members
public routes: {} source
Public Methods
public route(path: string, route: Route): RouteHandler source
A helper method to work with the instance's internal #routes property.
Acts as a getter if the route parameter is not specified and a setter
if it is. This method always returns the specified route object.
public run(settings: Object): http.Server source
Start the app server.
Params:
| Name | Type | Attribute | Description |
| settings | Object |
|
The port setting defaults to the value of the |
Return:
| http.Server | The server instance that has been started. |