code: func (s *Server) CreateSnapshot(w http.ResponseWriter, req *http.Request) {
  	snap, err := s.network.Snapshot()
  	if err != nil {
  		http.Error(w, err.Error(), http.StatusInternalServerError)
  		return
  	}
  
  	s.JSON(w, http.StatusOK, snap)
  }
docs: // CreateSnapshot creates a network snapshot