Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
This application performs Mathematical functions.

## API
`addition`
`subtraction`
`division`
`multiplication`
6 changes: 3 additions & 3 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const mathM = require('./math')
const PORT = 3000;

const handleRequest = (req, res) => {
const {url, method } = req;
const { url, method } = req;
const body = [];
let result

Expand Down Expand Up @@ -33,7 +33,7 @@ const handleRequest = (req, res) => {
res.end(JSON.stringify({ result }))
})


}
}

Expand All @@ -43,4 +43,4 @@ server.listen(PORT, () => {
console.log(`Server is listening on port: ${PORT}`)
})

module.exports = server;
module.exports = server;
Loading