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