diff --git a/app.js b/app.js index a29b612..f2113c0 100644 --- a/app.js +++ b/app.js @@ -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');