Browse files

Updated README for automatic views

  • Loading branch information...
1 parent bfb08d7 commit ee801c35488a58b8772272821d942cd09f37b2e9 @chetan51 committed Nov 11, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 README.md
View
4 README.md
@@ -86,7 +86,7 @@ Each of those is just a Node module. For example, the calculator controller ment
* be called, so it would look like /calculator.
*/
- this.index = function(req, res) {
+ this.index = function(req, res, next) {
res.ok('Welcome to the calculator!');
}
@@ -98,7 +98,7 @@ Each of those is just a Node module. For example, the calculator controller ment
* function with a = 4 and b = 5.
*/
- this.add = function(req, res, a, b) {
+ this.add = function(req, res, next, a, b) {
if (a && b) {
a = parseInt(a);
b = parseInt(b);

0 comments on commit ee801c3

Please sign in to comment.