Skip to content

Commit

Permalink
Merge pull request #2 from stephanemartin/wip-multiply
Browse files Browse the repository at this point in the history
Fix mitten
  • Loading branch information
stephanemartin authored May 11, 2017
2 parents 2ecb087 + 89bd839 commit b8c385a
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,13 @@ app.get('/add/:a/:b', (req, res) => {
});




app.listen(port);
console.log(`🌍 Web Application is started - listening on ${port}`);app.get(/multiply/:a/:b, (req, res) => {
app.get('/multiply/:a/:b', (req, res) => {
res.send({
result: calc.multiply(Number(req.params.a), Number(req.params.b))
});
});


app.listen(port);
console.log(`🌍 Web Application is started - listening on ${port}`);

0 comments on commit b8c385a

Please sign in to comment.