diff --git a/router.go b/router.go index fd33d4e..009caca 100644 --- a/router.go +++ b/router.go @@ -69,7 +69,7 @@ func (a *appData) buildRouter() http.Handler { album.CoverURL = fmt.Sprintf("/covers/%d%s", album.ID, ext) enc := json.NewEncoder(w) - if err := enc.Encode(a); err != nil { + if err := enc.Encode(album); err != nil { http.Error(w, err.Error(), http.StatusInternalServerError) } })).Methods("GET")