Switched mysql from connection to pool, Replaced connect-flash with build-in code
This commit is contained in:
4
app.js
4
app.js
@@ -6,8 +6,6 @@ var logger = require('morgan');
|
||||
|
||||
var session = require('express-session');
|
||||
|
||||
var flash = require('connect-flash');
|
||||
|
||||
var indexRouter = require('./routes/index');
|
||||
|
||||
var app = express();
|
||||
@@ -41,8 +39,6 @@ app.use(session({
|
||||
resave : false
|
||||
}));
|
||||
|
||||
app.use(flash());
|
||||
|
||||
app.use('/', indexRouter);
|
||||
|
||||
// catch 404 and forward to error handler
|
||||
|
||||
Reference in New Issue
Block a user