Permalink
Browse files

Another minor change to README

  • Loading branch information...
1 parent 788ed9d commit d2a88e70b206b8f7a97f6037bc56f8a4cdd4fb1b @chetan51 committed Nov 20, 2010
Showing with 5 additions and 0 deletions.
  1. +5 −0 README.md
View
@@ -91,7 +91,9 @@ Each of those is just a Node module. For example, the calculator controller ment
*/
this.index = function(req, res, next) {
+
res.ok('Welcome to the calculator!');
+
}
/*
@@ -103,6 +105,7 @@ Each of those is just a Node module. For example, the calculator controller ment
*/
this.add = function(req, res, next, a, b) {
+
if (a && b) {
a = parseInt(a);
b = parseInt(b);
@@ -118,7 +121,9 @@ Each of those is just a Node module. For example, the calculator controller ment
else {
res.error("a and b must both be provided.");
}
+
}
+
};
module.exports = new CalculatorController();

0 comments on commit d2a88e7

Please sign in to comment.