new Router()
Creates a new router object and registers all the given routes
Parameters
Name | Type | Default | Description |
---|---|---|---|
$routes | array |
[ ] |
|
$hooks | array |
[ ] |
Optional beforeEach and afterEach hooks |