#146

New

move paths and view names to consts

Reported by Volkan Ozcelik on JavaScript: from Zero to Hero · 14/07/2018 00:31:20

Assigned to:
Volkan Ozcelik
Priority:
Normal
Status:
New
Category:
Lessons
Version:
None

const init = app => {
// paths to consts.
app.get(‘/dashboard’, csrfProtection, authenticate, (req, res) => {
res.render(‘dashboard’, { // view names to consts.
alias: (req.session && req.session.user && req.session.user.alias) || ’’
});
});
};

Attachments

No attachment has been uploaded, yet.


Loading comments...