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