Commit bc22d5a3 authored by Michael Yang's avatar Michael Yang
Browse files

no blob response

parent 71d71d09
......@@ -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"`
}
......
......@@ -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{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment