remove!: unused and unimplemented V1DocumentPUT

This commit is contained in:
Victor Lacasse-Beaudoin 2023-11-20 17:02:37 -05:00
parent 9818466be5
commit ab81c4bfa2
2 changed files with 0 additions and 7 deletions

View file

@ -134,11 +134,6 @@ func (h *V1Handler) V1DocumentGET(c echo.Context) error {
return c.Stream(http.StatusOK, document_info.ContentType, document_object) return c.Stream(http.StatusOK, document_info.ContentType, document_object)
} }
// V1DocumentPUT permet de mettre à jour certains champs d'un object, comme le Content-Type ou le Filename
func (h *V1Handler) V1DocumentPUT(c echo.Context) error {
return c.JSON(apiresponse.NotImplementedResponse())
}
// V1DocumentDELETE permet de supprimer un object // V1DocumentDELETE permet de supprimer un object
func (h *V1Handler) V1DocumentDELETE(c echo.Context) error { func (h *V1Handler) V1DocumentDELETE(c echo.Context) error {
var request apirequest.V1DocumentDELETE var request apirequest.V1DocumentDELETE

View file

@ -250,8 +250,6 @@ func RunServer() {
groupV1.GET("/bucket/:bucket/:document", v1Handler.V1DocumentGET) groupV1.GET("/bucket/:bucket/:document", v1Handler.V1DocumentGET)
groupV1.PUT("/bucket/:bucket/:document", v1Handler.V1DocumentPUT)
if err := pave.EchoRegister[ if err := pave.EchoRegister[
apirequest.V1DocumentDELETE, apirequest.V1DocumentDELETE,
apiresponse.V1DocumentDELETE](groupV1, &p, "/v1", http.MethodDelete, "/bucket/:bucket/:document", "Delete document in specified bucket", "V1DocumentDELETE", v1Handler.V1DocumentDELETE); err != nil { apiresponse.V1DocumentDELETE](groupV1, &p, "/v1", http.MethodDelete, "/bucket/:bucket/:document", "Delete document in specified bucket", "V1DocumentDELETE", v1Handler.V1DocumentDELETE); err != nil {