diff --git a/contacts/package.json b/contacts/package.json index 95cd62604..6f0e8fb5f 100644 --- a/contacts/package.json +++ b/contacts/package.json @@ -6,16 +6,16 @@ "start": "if [[ $NODE_ENV == 'production' ]]; then node ./bin/www; else nodemon ./bin/www; fi" }, "dependencies": { - "connect-flash": "0.1.1", - "cookie-parser": "1.4.5", - "debug": "4.3.2", - "dotenv": "10.0.0", - "express": "4.17.1", - "http-errors": "1.8.0", - "morgan": "1.10.0", - "pg": "8.6.0", - "pug": "3.0.2" - }, + "connect-flash": "0.1.1", + "cookie-parser": "1.4.5", + "debug": "4.3.2", + "dotenv": "10.0.0", + "express": "4.17.1", + "http-errors": "1.8.0", + "morgan": "1.10.0", + "pg": "8.6.0", + "pug": "3.0.2" +}, "devDependencies": { "nodemon": "2.0.12" } diff --git a/express-helloworld/app.js b/express-helloworld/app.js index 782ccf037..3640fcc56 100644 --- a/express-helloworld/app.js +++ b/express-helloworld/app.js @@ -2,7 +2,7 @@ var express = require('express'); app = express(); app.get('/', function (req, res) { - res.send('Hello World!\n'); + res.send('Hello World!\n');; }); app.listen(8080, function () { diff --git a/version/app.js b/version/app.js index ea8302397..4833dd74f 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 3 of the app.' + '\n'; //send the response to the client res.send(response); diff --git a/weather/app.js b/weather/app.js index c7a42c817..7e9d405dd 100644 --- a/weather/app.js +++ b/weather/app.js @@ -5,7 +5,7 @@ var cookieParser = require('cookie-parser'); var logger = require('morgan'); var indexRouter = require('./routes/index'); - +app.use('/', indexRouter); var app = express(); // view engine setup diff --git a/weather/package.json b/weather/package.json index a29e83c0d..086ec6647 100644 --- a/weather/package.json +++ b/weather/package.json @@ -6,13 +6,14 @@ "start": "node ./bin/www" }, "dependencies": { - "cookie-parser": "1.4.5", - "debug": "4.3.2", - "dotenv": "10.0.0", - "express": "4.17.1", - "http-errors": "1.8.0", - "morgan": "1.10.0", - "node-fetch": "^2.6.1", - "pug": "3.0.2" - } + "cookie-parser": "1.4.5", + "debug": "4.3.2", + "dotenv": "10.0.0", + "express": "4.17.1", + "http-errors": "1.8.0", + "morgan": "1.10.0", + "node-fetch": "^2.6.1", + "package-json": "^7.0.0", + "pug": "3.0.2" +} }