Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Another minor change to README

  • Loading branch information...
commit d2a88e70b206b8f7a97f6037bc56f8a4cdd4fb1b 1 parent 788ed9d
@chetan51 authored
Showing with 5 additions and 0 deletions.
  1. +5 −0 README.md
View
5 README.md
@@ -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();
Please sign in to comment.
Something went wrong with that request. Please try again.