From 0eabfa9833ace9abd74e106f393de0a62f16001c Mon Sep 17 00:00:00 2001 From: hirenpatel7 Date: Tue, 28 Jan 2025 13:17:20 +0530 Subject: [PATCH 1/3] 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!'); }); From 3fffc71b32809c6db2e2e65a4584e9f101e4e637 Mon Sep 17 00:00:00 2001 From: hirenpatel7 Date: Thu, 30 Jan 2025 12:32:38 +0530 Subject: [PATCH 2/3] changes --- contacts-troubleshoot/app.js | 1 + version/app.js | 1 + 2 files changed, 2 insertions(+) diff --git a/contacts-troubleshoot/app.js b/contacts-troubleshoot/app.js index c7a42c817..1423bf679 100644 --- a/contacts-troubleshoot/app.js +++ b/contacts-troubleshoot/app.js @@ -37,3 +37,4 @@ app.use(function(err, req, res, next) { }); module.exports = app; +module.exports = app; \ No newline at end of file diff --git a/version/app.js b/version/app.js index ea8302397..8afe5c716 100644 --- a/version/app.js +++ b/version/app.js @@ -15,3 +15,4 @@ app.get('/', function (req, res) { app.listen(8080, function () { console.log('Server listening on port 8080...'); }); + From f58f5489694fb027e59fc1f96c4d6df1479deaec Mon Sep 17 00:00:00 2001 From: hirenpatel7 Date: Thu, 30 Jan 2025 12:42:55 +0530 Subject: [PATCH 3/3] Revert "changesgiuk" --- contacts-troubleshoot/app.js | 1 - version/app.js | 1 - 2 files changed, 2 deletions(-) diff --git a/contacts-troubleshoot/app.js b/contacts-troubleshoot/app.js index 1423bf679..c7a42c817 100644 --- a/contacts-troubleshoot/app.js +++ b/contacts-troubleshoot/app.js @@ -37,4 +37,3 @@ app.use(function(err, req, res, next) { }); module.exports = app; -module.exports = app; \ No newline at end of file diff --git a/version/app.js b/version/app.js index 8afe5c716..ea8302397 100644 --- a/version/app.js +++ b/version/app.js @@ -15,4 +15,3 @@ app.get('/', function (req, res) { app.listen(8080, function () { console.log('Server listening on port 8080...'); }); -