router
http
Right now the router is simply an EventEmitter. This may change in the future
Try the original route first for speed. If none exists, recursively fall back until we find a route, if possible This allows us to fully support HTML5 pushState 'mock routing' across multiple single-page clients
Param | Type | Details |
---|---|---|
url | String | Url to route |
req | Object | Request object |
res | Object | Respond object |
Boolean | Route state according to passed |