just show items

pull/144/head
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") {
marsh, err := json.Marshal(listing)
marsh, err := json.Marshal(listing.Items)
if err != nil {
return http.StatusInternalServerError, err
}