Skip to content

Commit

Permalink
Merge pull request #72 from Wilcolab/shem8-patch-5
Browse files Browse the repository at this point in the history
Update controller.js
  • Loading branch information
shem8 authored Sep 25, 2024
2 parents 1316306 + 9ba10b0 commit f52f2ed
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions api/controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit f52f2ed

Please sign in to comment.