func RunlistRead(cocs backend.Cocaine, w http.ResponseWriter, r *http.Request) { name := mux.Vars(r)["name"] runlist, err := cocs.RunlistRead(name) if err != nil { http.Error(w, err.Error(), http.StatusInternalServerError) return } SendJson(w, runlist) }