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!'); }); diff --git a/version/app.js b/version/app.js index ea830239..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 1 of the app.' + '\n'; + response = 'This is version 4 of the app.' + '\n'; //send the response to the client res.send(response);