From b7154adb0f873f2c55f536ece4bcf4144a1f2ee6 Mon Sep 17 00:00:00 2001 From: snehaljaybhay24 Date: Wed, 29 Jan 2025 10:51:03 +0530 Subject: [PATCH] add /mars endpoint --- express-helloworld/app.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/express-helloworld/app.js b/express-helloworld/app.js index 782ccf037..40fc627ba 100644 --- a/express-helloworld/app.js +++ b/express-helloworld/app.js @@ -4,6 +4,9 @@ app = express(); 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!');