Remove unnedded
This commit is contained in:
parent
b2fb9ea911
commit
fe87b6f5d2
7
app.js
7
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');
|
||||
|
Loading…
x
Reference in New Issue
Block a user