Skip to content

Commit b0020aa

Browse files
committed
api: fix /api/manifests/{id}
1 parent 7177381 commit b0020aa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

api/server.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,10 @@ func NewServer(store *store.Store, authorization string) (server *Server, err er
8080
var b []byte
8181
if strings.Contains(r.Header.Get("Accept"), "application/json") {
8282
w.Header().Set("Content-Type", "applications/json")
83-
b, _ = json.Marshal(store.GetAll())
83+
b, _ = json.Marshal(m)
8484
} else {
8585
w.Header().Set("Content-Type", "text/yaml")
86-
b, _ = yaml.Marshal(store.GetAll())
86+
b, _ = yaml.Marshal(m)
8787
}
8888
w.WriteHeader(http.StatusOK)
8989
w.Write(b)

0 commit comments

Comments
 (0)