Skip to content

Commit

Permalink
api: make postLayer returns a Layer
Browse files Browse the repository at this point in the history
  • Loading branch information
jzelinskie committed Feb 24, 2016
1 parent 4f0f813 commit 4516d6f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions api/v1/routes.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 4516d6f

Please sign in to comment.