Skip to content

Commit

Permalink
add /mars endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
nidhi-soni1104 committed Apr 19, 2024
1 parent ba2af85 commit f409555
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions express-helloworld/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ app.get('/', function (req, res) {
res.send('Hello World!\n');
});

app.get('/mars', function(req, res) {
res.send('Hello Mars!\n');
});

app.listen(8080, function () {
console.log('Example app listening on port 8080!');
});
Expand Down

0 comments on commit f409555

Please sign in to comment.