Skip to content

Commit

Permalink
Clarify empty params for #1092
Browse files Browse the repository at this point in the history
  • Loading branch information
Eran Hammer committed Oct 3, 2013
1 parent 91ce155 commit 7353cbc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/Reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -619,7 +619,8 @@ Parameterized paths are processed by matching the named parameters to the conten
part of the segment ('/file.{ext}').

An optional '?' suffix following the parameter name indicates an optional parameter (only allowed if the parameter is at the ends of the path or
only covers part of the segment as in '/a{param?}/b'). For example, the route '/book/{id?}' matches '/book/'.
only covers part of the segment as in '/a{param?}/b'). For example, the route '/book/{id?}' matches '/book/' with the value of `request.params.id` set
to an empty string `''`.

```javascript
var getAlbum = function () {
Expand Down

0 comments on commit 7353cbc

Please sign in to comment.