From 62860495e28007bc2b8db85a4bcdb0e56e051e55 Mon Sep 17 00:00:00 2001 From: Hammad Aslam <36418598+haslam93@users.noreply.github.com> Date: Wed, 11 Dec 2024 09:21:43 -0500 Subject: [PATCH] Update controller.js --- api/controller.js | 1 + 1 file changed, 1 insertion(+) diff --git a/api/controller.js b/api/controller.js index 949731c..0b3137b 100644 --- a/api/controller.js +++ b/api/controller.js @@ -16,6 +16,7 @@ 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 }, // Modulo }; if (!req.query.operation) {