Remove unnedded

This commit is contained in:
Nikola Petrov 2023-09-15 00:05:27 +02:00
parent b2fb9ea911
commit fe87b6f5d2

7
app.js
View File

@ -42,13 +42,6 @@ app.use(express.urlencoded({ extended: false }));
app.use(cookieParser());
app.use(express.static(path.join(__dirname, 'public')));
//Shranimo sejne spremenljivke v locals
//Tako lahko do njih dostopamo v vseh view-ih (glej layout.hbs)
app.use(function (req, res, next) {
res.locals.session = req.session;
next();
});
var mainRouter = require('./routes/main');
var listRouter = require('./routes/list');
var apiRouter = require('./routes/api/apiRouter');