From 9ba10b08a3a5bdfbbc2bed66d26f7eebd12377c1 Mon Sep 17 00:00:00 2001 From: Shem Date: Wed, 25 Sep 2024 12:27:03 +0300 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..f36266a 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 }, + 'power': function(a, b) { return a**b }, }; if (!req.query.operation) {