Adjust return code for publish create call. #116

This commit is contained in:
Andrey Smirnov
2015-03-01 22:31:56 +03:00
parent 7e60466c7b
commit 49a9ad79dd
+1 -1
View File
@@ -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