Permalink
Browse files

Fixed router

  • Loading branch information...
1 parent aa76bf3 commit d3e275e75ab196a19845e37a4a06b2ec883d1c77 xFontroSF committed Sep 26, 2012
Showing with 6 additions and 5 deletions.
  1. +2 −2 client.js
  2. +4 −3 router.js
View
@@ -13,8 +13,8 @@ var req_options = {
var nums = {
- op1: 2,
- op2: 4
+ op1: 7,
+ op2: 15
};
var data = JSON.stringify(nums);
View
@@ -1,7 +1,7 @@
function route(handle, operation, a, b, resultat, err) {
if (typeof handle[operation] === 'function') {
- var routing = handle[operation](
+ /*var routing = */handle[operation](
a,
b,
function(res){
@@ -15,6 +15,7 @@ function route(handle, operation, a, b, resultat, err) {
};
err(error);
} else{
+ console.log("The result is: "+res);
resultat({"resultat" : res});
}
}
@@ -31,9 +32,9 @@ function route(handle, operation, a, b, resultat, err) {
}
- routing.on('error', function(e){
+ /*routing.on('error', function(e){
console.log("Routing Caught the error: " + e);
- });
+ });*/
}
exports.route = route;

0 comments on commit d3e275e

Please sign in to comment.