lib/services/sites.js
function getSite(host, path) {
  // note: uses the memoized version
  return _.find(module.exports.sites(), function (site) {
    return site.host === host && site.path === path;
  });
}
function getSite(host, path) {
  // note: uses the memoized version
  return _.find(module.exports.sites(), function (site) {
    return site.host === host && site.path === path;
  });
}
function getSite ( host , path ) { // note: uses the memoized version return _ . find ( module . exports . sites ( ) , function ( site ) { return site . host === host && site . path === path ; } ) ; }
get site config that matches a specific host + path
@param {string} host
@param {string} path (make sure it starts with a slash!)
@returns {object}
get site config that matches a specific host + path