From 49a9ad79ddc1b2a756fc4bcf5ce663d76617c64a Mon Sep 17 00:00:00 2001 From: Andrey Smirnov Date: Sun, 1 Mar 2015 22:31:56 +0300 Subject: [PATCH] Adjust return code for publish create call. #116 --- api/publish.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/publish.go b/api/publish.go index d5d58b7d..a9c2c554 100644 --- a/api/publish.go +++ b/api/publish.go @@ -201,7 +201,7 @@ func apiPublishRepoOrSnapshot(c *gin.Context) { c.Fail(500, fmt.Errorf("unable to save to DB: %s", err)) } - c.JSON(200, published) + c.JSON(201, published) } // PUT /publish/:prefix/:distribution