Skip to content

Commit

Permalink
refactor(route): return this from route.render to chaining
Browse files Browse the repository at this point in the history
  • Loading branch information
thetutlage committed Apr 10, 2016
1 parent 8990f0d commit cd6eab3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Route/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ Route.on = function (route) {
* @method render
*
* @param {String} view
* @return {Object}
*
* @public
*/
Expand All @@ -132,6 +133,7 @@ Route.render = function (view) {
route.handler = function * (request, response) {
yield response.sendView(view, {request})
}
return this
}

/**
Expand Down

0 comments on commit cd6eab3

Please sign in to comment.