From 7abe9cca007df6e78dc69cb8409ec305f1c526f3 Mon Sep 17 00:00:00 2001 From: TaniaJim Date: Thu, 12 Sep 2024 12:50:26 -0600 Subject: [PATCH] add /mars endpoint --- 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..d7b3ab096 100644 --- a/express-helloworld/app.js +++ b/express-helloworld/app.js @@ -8,4 +8,6 @@ app.get('/', function (req, res) { app.listen(8080, function () { console.log('Example app listening on port 8080!'); }); - +app.get('/mars', function(req, res) { + res.send('Hello Mars!\n'); +});