Fixes a stupid bug
================================================================================
========================= B I G H I N T =========================
================================================================================
Y O U N E E D T D D
This commit is contained in:
@@ -69,7 +69,7 @@ func (a *appData) buildRouter() http.Handler {
|
|||||||
album.CoverURL = fmt.Sprintf("/covers/%d%s", album.ID, ext)
|
album.CoverURL = fmt.Sprintf("/covers/%d%s", album.ID, ext)
|
||||||
|
|
||||||
enc := json.NewEncoder(w)
|
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)
|
http.Error(w, err.Error(), http.StatusInternalServerError)
|
||||||
}
|
}
|
||||||
})).Methods("GET")
|
})).Methods("GET")
|
||||||
|
|||||||
Reference in New Issue
Block a user