Skip to content

Commit

Permalink
Review feedback updates
Browse files Browse the repository at this point in the history
  • Loading branch information
whitemonkeysoftware committed Nov 8, 2018
1 parent f20ef8c commit 8fec4c1
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 108 deletions.
20 changes: 10 additions & 10 deletions app.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
var express = require('express');
var path = require('path');
var favicon = require('serve-favicon');
var logger = require('morgan');
var cookieParser = require('cookie-parser');
var bodyParser = require('body-parser');
const express = require('express');
const path = require('path');
const favicon = require('serve-favicon');
const logger = require('morgan');
const cookieParser = require('cookie-parser');
const bodyParser = require('body-parser');

var indexRouter = require('./routes/index');
var usersRouter = require('./routes/users');
const indexRouter = require('./routes/index');
const usersRouter = require('./routes/users');

var app = express();
const app = express();

// view engine setup
app.set('views', path.join(__dirname, 'views'));
Expand All @@ -27,7 +27,7 @@ app.use('/users', usersRouter);

// catch 404 and forward to error handler
app.use(function(req, res, next) {
var err = new Error('Not Found');
const err = new Error('Not Found');
err.status = 404;
next(err);
});
Expand Down
125 changes: 31 additions & 94 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "book-code",
"name": "Getting-MEAN-2nd-edition",
"version": "0.0.0",
"private": true,
"scripts": {
Expand All @@ -8,10 +8,10 @@
"dependencies": {
"body-parser": "~1.18.3",
"cookie-parser": "~1.4.3",
"debug": "~4.0.1",
"express": "~4.16.3",
"debug": "~4.1.0",
"express": "~4.16.4",
"morgan": "~1.9.1",
"pug": "~2.0.0-beta10",
"pug": "~2.0.3",
"serve-favicon": "~2.5.0"
}
}

0 comments on commit 8fec4c1

Please sign in to comment.