src/server/controllers/home-controller.js
/**
* Load home and append to req.
*/
Load home and append to req.
Load home and append to req .
function load(req, res, next, id) {
    Home.get(id)
    .then((home) => {
        req.home = home;
        return next();
    })
    .catch(e => next(e));
}
function load ( req , res , next , id ) { Home . get ( id ) . then ( ( home ) => { req . home = home ; return next ( ) ; } ) . catch ( e => next ( e ) ) ; }
Load home and append to req.
Load home and append to req .