Skip to content

Commit

Permalink
Merge pull request #5 from matheuseqc/adciona-soma
Browse files Browse the repository at this point in the history
Add files via upload
  • Loading branch information
matheuseqc authored Aug 18, 2021
2 parents d0b93d7 + b703e63 commit c0a8ca9
Show file tree
Hide file tree
Showing 2 changed files with 385 additions and 0 deletions.
13 changes: 13 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
const express = require('express')
const app = express()
app.use(express.json())

app.get('/soma/:n1/:n2', (req, res) => {
return res.json({
result: parseFloat(req.params.n1) + parseFloat(req.params.n2)
})
})

app.listen(8000, () => {
console.log(`Rodando em http://localhost:8000/`);
})
372 changes: 372 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit c0a8ca9

Please sign in to comment.