Ajouter et implémenter models.NotImplementedResponse()
This commit is contained in:
parent
742cf9999b
commit
b19238e1cc
2 changed files with 10 additions and 3 deletions
|
@ -258,6 +258,7 @@ func HandleV1DocumentCreate(c echo.Context) error {
|
|||
response.Data.Bucket = info.Bucket
|
||||
response.Data.Key = info.Key
|
||||
response.Data.Size = info.Size
|
||||
|
||||
return c.JSON(response.StatusCode, response)
|
||||
}
|
||||
|
||||
|
@ -334,9 +335,7 @@ func HandleV1DocumentRead(c echo.Context) error {
|
|||
|
||||
// HandleV1DocumentUpdate permet de mettre à jour certains champs d'un object, comme le Content-Type ou le Filename
|
||||
func HandleV1DocumentUpdate(c echo.Context) error {
|
||||
return c.JSON(http.StatusNotImplemented, map[string]string{
|
||||
"message": "Not Implemented",
|
||||
})
|
||||
return c.JSON(models.NotImplementedResponse())
|
||||
}
|
||||
|
||||
// HandleV1DocumentDelete permet de supprimer un object
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue