just show items

This commit is contained in:
Henrique Dias 2016-08-11 22:28:12 +01:00
parent 1f660b7ecf
commit c65c995663
1 changed files with 1 additions and 1 deletions

View File

@ -227,7 +227,7 @@ func (i *Info) serveListing(w http.ResponseWriter, r *http.Request, c *config.Co
} }
if strings.Contains(r.Header.Get("Accept"), "application/json") { if strings.Contains(r.Header.Get("Accept"), "application/json") {
marsh, err := json.Marshal(listing) marsh, err := json.Marshal(listing.Items)
if err != nil { if err != nil {
return http.StatusInternalServerError, err return http.StatusInternalServerError, err
} }