Skip to content

Commit

Permalink
Add note about path-to-regexp.
Browse files Browse the repository at this point in the history
  • Loading branch information
alexmingoia committed Nov 25, 2015
1 parent faab16d commit f1b01d6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,9 @@ router.get('/:category/:title', function (ctx, next) {
});
```

The [path-to-regexp](https://github.com/pillarjs/path-to-regexp) module is used
to convert paths to regular expressions.

**Kind**: instance property of <code>[Router](#exp_module_koa-router--Router)</code>

| Param | Type | Description |
Expand Down
3 changes: 3 additions & 0 deletions lib/router.js
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,9 @@ function Router(opts) {
* });
* ```
*
* The [path-to-regexp](https://github.com/pillarjs/path-to-regexp) module is
* used to convert paths to regular expressions.
*
* @name get|put|post|patch|delete
* @memberof module:koa-router.prototype
* @param {String} path
Expand Down

0 comments on commit f1b01d6

Please sign in to comment.