no blob response

This commit is contained in:
Michael Yang 2023-11-15 13:55:37 -08:00
parent 71d71d0988
commit bc22d5a38b
2 changed files with 2 additions and 6 deletions

View file

@ -105,10 +105,6 @@ type CreateRequest struct {
Stream *bool `json:"stream,omitempty"`
}
type CreateBlobResponse struct {
Path string `json:"path"`
}
type DeleteRequest struct {
Name string `json:"name"`
}

View file

@ -662,7 +662,7 @@ func HeadBlobHandler(c *gin.Context) {
return
}
c.JSON(http.StatusOK, api.CreateBlobResponse{Path: path})
c.Status(http.StatusOK)
}
func CreateBlobHandler(c *gin.Context) {
@ -701,7 +701,7 @@ func CreateBlobHandler(c *gin.Context) {
return
}
c.JSON(http.StatusOK, api.CreateBlobResponse{Path: targetPath})
c.Status(http.StatusCreated)
}
var defaultAllowOrigins = []string{