From e86987e350f4d9a43d0aaa8166e46c1a1bda2d27 Mon Sep 17 00:00:00 2001 From: Hammad Aslam <36418598+haslam93@users.noreply.github.com> Date: Wed, 11 Dec 2024 22:20:45 -0500 Subject: [PATCH] Update controller.js --- api/controller.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/api/controller.js b/api/controller.js index 949731c..23760aa 100644 --- a/api/controller.js +++ b/api/controller.js @@ -16,6 +16,8 @@ exports.calculate = function(req, res) { 'subtract': function(a, b) { return a - b }, 'multiply': function(a, b) { return a * b }, 'divide': function(a, b) { return a / b }, + modulo: function(a,b) {return a%b} + }; if (!req.query.operation) {