dist/server/controllers/user.controller.js
/**
 * Load user and append to req.
 */
Load user and append to req.
Load user and append to req .
function load(req, res, next, id) {
  _user2.default.get(id).then(function (user) {
    req.user = user; 
    return next();
  }).catch(function (e) {
    return next(e);
  });
}
function load ( req , res , next , id ) { _user2 . default . get ( id ) . then ( function ( user ) { req . user = user ; return next ( ) ; } ) . catch ( function ( e ) { return next ( e ) ; } ) ; }
Load user and append to req.
Load user and append to req .
// eslint-disable-line no-param-reassign