From 3e3cda5d41eeee66a5297811f99906204d3191e4 Mon Sep 17 00:00:00 2001 From: stevo9061 Date: Mon, 23 Sep 2024 10:42:42 +0200 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 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!'); });