Switched mysql from connection to pool, Replaced connect-flash with build-in code

This commit is contained in:
2026-01-09 23:41:07 +01:00
parent cc92b4653c
commit cd07bb0cbf
8 changed files with 519 additions and 486 deletions

4
app.js
View File

@@ -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