From e383dfbc859b7fe288ee22c1846fbecf9efe2445 Mon Sep 17 00:00:00 2001 From: Mostafa Eissa Date: Tue, 26 Dec 2023 11:47:59 +0200 Subject: [PATCH] adding /mars --- express-helloworld/app.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/express-helloworld/app.js b/express-helloworld/app.js index 782ccf037..94f63f0a4 100644 --- a/express-helloworld/app.js +++ b/express-helloworld/app.js @@ -4,7 +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!'); });