module.exports = function(router, users){
  router.use(function(req, res, next){
    Object.assign(res.locals,{
      postData: (req.body ? req.body : false)
    });

    Object.assign(res.locals,{
      getData: (req.query ? req.query : false)
    });

    req.session.user = req.session.user || users[0];
    
    Object.assign(res.locals,{
      sessionData: (req.session ? req.session : false)
    });

    next();
  });
}
@@ -78,303 +78,88 @@
 t)%7B%0A
-    Object.assign(res.locals,%7B%0A      postData: (req.body ? req.body : false)%0A    %7D);%0A%0A    Object.assign(res.locals,%7B%0A      getData: (req.query ? req.query : false)%0A    %7D);%0A%0A    req.session.user = req.session.user %7C%7C users%5B0%5D;%0A    %0A    Object.assign(res.locals,%7B%0A      sessionData: (req.session ?
+%0A    req.session.user = req.session.user %7C%7C users%5B0%5D;%0A    res.locals.data.user =
  req
@@ -170,26 +170,19 @@
 sion
- : false)
+.user;
 %0A    
-%7D);%0A
 %0A   

Remove custom get, post and session data setup