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

11 lines
288 B
JavaScript

module.exports.index = function(req, res) {
req.session = null;
res.locals.session = null;
res.setHeader('Content-Type', 'text/html');
res.render('../../index/views/index.jade', res.locals, function(err, out) {
console.log(err);
res.send(out);
});
};