// corporative
'use strict';
const logger = require('../../logger');
exports.get = (req, res, next) => {
let user = req.session.username;
if (!user) {
res.redirect('/block');
} else {
logger.write(`info`,`[${user}][router:home][url:${req.url}] -- рендер корпоратив.`);
res.render('corporative/index.ejs');
}
};