lib/handler.js
function find(pathname, patterns) {
  for (const entry of patterns)
    if (minimatch(pathname, entry.pattern))
      return entry.handler
  return null
}
function find(pathname, patterns) {
  for (const entry of patterns)
    if (minimatch(pathname, entry.pattern))
      return entry.handler
  return null
}
function find ( pathname , patterns ) { for ( const entry of patterns ) if ( minimatch ( pathname , entry . pattern ) ) return entry . handler return null }
finds a handler matched with pathname
finds a handler matched with pathname