code: func (s *Server) LoadSnapshot(w http.ResponseWriter, req *http.Request) {
  	snap := &Snapshot{}
  	if err := json.NewDecoder(req.Body).Decode(snap); err != nil {
  		http.Error(w, err.Error(), http.StatusBadRequest)
  		return
  	}
  
  	if err := s.network.Load(snap); err != nil {
  		http.Error(w, err.Error(), http.StatusInternalServerError)
  		return
  	}
  
  	s.JSON(w, http.StatusOK, s.network)
  }
docs: // LoadSnapshot loads a snapshot into the network