diff --git a/api/controllers/arithmeticController.js b/api/controllers/arithmeticController.js index cff6439..65e7783 100644 --- a/api/controllers/arithmeticController.js +++ b/api/controllers/arithmeticController.js @@ -13,6 +13,7 @@ exports.calculate = function(req, res) { var operations = { 'add': function(a,b) { return +a + +b }, 'subtract': function(a,b) { return a - b }, + 'divide': function(a,b) { return a / b }, }; // Determine the operation