docs: def make_map(declarations):
      """Process route declarations to create a Route Mapper."""
      mapper = routes.Mapper()
      for route, methods in ROUTE_LIST:
          allowed_methods = []
          for method, func in methods.items():
              mapper.connect(route, action=func,
                             conditions=dict(method=[method]))
              allowed_methods.append(method)
          allowed_methods = ', '.join(allowed_methods)
          mapper.connect(route, action=handle_not_allowed,
                         _methods=allowed_methods)
      return mapper