if (typeof map === 'object')
    for (var route in map)
      if (map.hasOwnProperty(route))
        router.route(route, map[route]);