code: func (s *Server) CreateNode(w http.ResponseWriter, req *http.Request) {
  	config := &adapters.NodeConfig{}
  
  	err := json.NewDecoder(req.Body).Decode(config)
  	if err != nil && err != io.EOF {
  		http.Error(w, err.Error(), http.StatusBadRequest)
  		return
  	}
  
  	node, err := s.network.NewNodeWithConfig(config)
  	if err != nil {
  		http.Error(w, err.Error(), http.StatusInternalServerError)
  		return
  	}
  
  	s.JSON(w, http.StatusCreated, node.NodeInfo())
  }
docs: // CreateNode creates a node in the network using the given configuration