Fixed some linter issues
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
parent
6455f3ff10
commit
e958080702
6
index.js
6
index.js
@ -1,6 +1,6 @@
|
||||
const express = require('express');
|
||||
const session = require('express-session');
|
||||
//const flash = require('express-flasher');
|
||||
// const flash = require('express-flasher');
|
||||
|
||||
// instantiate new express.js app
|
||||
const app = express();
|
||||
@ -22,8 +22,8 @@ app.use(session({
|
||||
}));
|
||||
|
||||
// setup flash messaging
|
||||
//app.use(flash.flash());
|
||||
//app.use(flash.flashRead());
|
||||
// app.use(flash.flash());
|
||||
// app.use(flash.flashRead());
|
||||
|
||||
// set up body POST parameters
|
||||
app.use(express.json());
|
||||
|
@ -10,7 +10,7 @@ exports.getIndex = async function(req, res) {
|
||||
],
|
||||
});
|
||||
|
||||
//req.flash('info', 'This is a test flash message.');
|
||||
// req.flash('info', 'This is a test flash message.');
|
||||
|
||||
res.render('index.twig', {
|
||||
inventory: items,
|
||||
|
Loading…
Reference in New Issue
Block a user