From 4516d6fd73a9d69a4d041dc880f4bd5a00b4ad01 Mon Sep 17 00:00:00 2001 From: Jimmy Zelinskie Date: Fri, 5 Feb 2016 18:28:00 -0500 Subject: [PATCH] api: make postLayer returns a Layer --- api/v1/routes.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/api/v1/routes.go b/api/v1/routes.go index 673a562a..0b3a383b 100644 --- a/api/v1/routes.go +++ b/api/v1/routes.go @@ -89,6 +89,13 @@ func postLayer(w http.ResponseWriter, r *http.Request, p httprouter.Params, ctx } w.WriteHeader(http.StatusCreated) + writeResponse(w, http.StatusCreated, LayerEnvelope{Layer: &Layer{ + Name: request.Layer.Name, + ParentName: request.Layer.ParentName, + Path: request.Layer.Path, + Format: request.Layer.Format, + IndexedByVersion: worker.Version, + }}) return postLayerRoute, http.StatusCreated }