Skip to content

Commit

Permalink
docs
Browse files Browse the repository at this point in the history
  • Loading branch information
doowb committed Dec 10, 2014
1 parent 651ea5b commit 75854c8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ var gulpRoutes = require('gulp-routes');
```

## API
### [.routesPlugin](index.js#L28)
### [.gulpRoutes](index.js#L28)

Create a routes plugin that runs middleware defined on a router.

Expand Down
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@ var gutil = require('gulp-util');
* var routes = gulpRoutes(router);
* ```
*
* @name routesPlugin
* @name gulpRoutes
* @param {Object} `router` Instance of an [en-route] router
* @return {Function} New function for creating a router stream.
* @api public
*/

module.exports = function routesPlugin(router) {
module.exports = function gulpRoutes(router) {
router = router || (this && this.router);
if (!router) {
throw new gutil.PluginError('gulp-routes', new Error('Expected a valid router object.'));
Expand Down

0 comments on commit 75854c8

Please sign in to comment.