From 399f0f140b2b73f4bad3aeec395ad1f6db322042 Mon Sep 17 00:00:00 2001 From: likitha31 Date: Sat, 12 Oct 2024 13:07:47 -0400 Subject: [PATCH] add /mars endpoint --- express-helloworld/app.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/express-helloworld/app.js b/express-helloworld/app.js index 782ccf037..4fecae6f6 100644 --- a/express-helloworld/app.js +++ b/express-helloworld/app.js @@ -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!'); });