Skip to content

Commit

Permalink
add documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Walter Barbagallo committed Apr 8, 2016
1 parent eaf5d11 commit 0d6513c
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,16 @@ When the express app receive a `GET /home` request, the index action handler of
Any express supported method (router.METHOD) can be used.


#### Root

You can specify how to route `GET /` with the root method:

```javascript
router.root({ to: 'welcome#index' })
router.root('welcome#index') // shortcut for the above
```


#### Named parameters

Named parameters are also supported:
Expand Down

0 comments on commit 0d6513c

Please sign in to comment.