From 6699e06d9d179203c3558e75b64069eb63d1d091 Mon Sep 17 00:00:00 2001 From: steven4polyu <47852439+steven4polyu@users.noreply.github.com> Date: Thu, 21 Feb 2019 19:25:09 +0800 Subject: [PATCH] Update arithmeticController.js implement division function --- api/controllers/arithmeticController.js | 1 + 1 file changed, 1 insertion(+) 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