code: func (h *Handler) handleGetSchema(w http.ResponseWriter, r *http.Request) {
  	if !validHeaderAcceptJSON(r.Header) {
  		http.Error(w, "JSON only acceptable response", http.StatusNotAcceptable)
  		return
  	}
  
  	schema := h.api.Schema(r.Context())
  	if err := json.NewEncoder(w).Encode(map[string]interface{}{"indexes": schema}); err != nil { // TODO: use pilosa.Schema instead of map[string]interface{} here?
  		h.logger.Printf("write schema response error: %s", err)
  	}
  }
docs: // handleGetSchema handles GET /schema requests.