From 1e719ba1067eb2a98301cddfd75272c197841c0c Mon Sep 17 00:00:00 2001 From: Evantha Manikpura Date: Sun, 5 Nov 2023 04:13:08 +0000 Subject: [PATCH 1/4] Update app.js --- express-helloworld/app.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/express-helloworld/app.js b/express-helloworld/app.js index 782ccf03..c5ba54fa 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 c6a2cc99057ff2b88257bd6f99b2bbec3bfc19bb Mon Sep 17 00:00:00 2001 From: evantha Date: Sun, 5 Nov 2023 14:31:17 +0800 Subject: [PATCH 2/4] updated the version --- version/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/version/app.js b/version/app.js index ea830239..2785f252 100644 --- a/version/app.js +++ b/version/app.js @@ -5,7 +5,7 @@ var response; app.get('/', function (req, res) { - response = 'This is version 1 of the app.' + '\n'; + response = 'This is version 2 of the app.' + '\n'; //send the response to the client res.send(response); From 3d7f265a9412e5063119a2c9c227ee71cf2e5999 Mon Sep 17 00:00:00 2001 From: evantha Date: Sun, 5 Nov 2023 17:22:12 +0800 Subject: [PATCH 3/4] updated the version --- version/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/version/app.js b/version/app.js index 2785f252..4833dd74 100644 --- a/version/app.js +++ b/version/app.js @@ -5,7 +5,7 @@ var response; app.get('/', function (req, res) { - response = 'This is version 2 of the app.' + '\n'; + response = 'This is version 3 of the app.' + '\n'; //send the response to the client res.send(response); From 6682c2e529466907d4f8635e20e3803575b91768 Mon Sep 17 00:00:00 2001 From: evantha Date: Sun, 19 Nov 2023 14:20:01 +0800 Subject: [PATCH 4/4] updated to v4 --- version/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/version/app.js b/version/app.js index 4833dd74..1a7395c5 100644 --- a/version/app.js +++ b/version/app.js @@ -5,7 +5,7 @@ var response; app.get('/', function (req, res) { - response = 'This is version 3 of the app.' + '\n'; + response = 'This is version 4 of the app.' + '\n'; //send the response to the client res.send(response);