3d-interface/controllers/logout/index.js

8 lines
127 B
JavaScript

module.exports.index = function(req, res) {
req.session = null;
res.locals.session = null;
res.redirect('/');
};