Skip to content

Commit

Permalink
Update server.js
Browse files Browse the repository at this point in the history
  • Loading branch information
gunjangarge committed Jan 19, 2021
1 parent c538a26 commit 84096b1
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions source/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,18 +36,6 @@ app.get('/perf', (req, res) => {
});
})


app.get('/ip/:ip/port/:port', function(req, res) {
console.log("http://" + req.params.ip + ":"+ req.params.port +"/ip")
axios.get("http://" + req.params.ip + ":"+ req.params.port +"/ip")
.then(function(response) {
res.json(response.data)
}).catch(function(error) {
res.json("Error occured!")
})
});


app.get("/getexttodos", (req, res) => {
axios.get("https://jsonplaceholder.typicode.com/todos?_limit=5")
.then(function(response) {
Expand Down

0 comments on commit 84096b1

Please sign in to comment.