Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions express-helloworld/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -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!');
});
Expand Down
2 changes: 1 addition & 1 deletion version/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down