From ab81c4bfa29efda3e2b8649a05d008004fa75f4b Mon Sep 17 00:00:00 2001 From: Victor Lacasse-Beaudoin Date: Mon, 20 Nov 2023 17:02:37 -0500 Subject: [PATCH] remove!: unused and unimplemented V1DocumentPUT --- apihandler/document.go | 5 ----- cmd/server.go | 2 -- 2 files changed, 7 deletions(-) diff --git a/apihandler/document.go b/apihandler/document.go index 8239474..29b70b5 100644 --- a/apihandler/document.go +++ b/apihandler/document.go @@ -134,11 +134,6 @@ func (h *V1Handler) V1DocumentGET(c echo.Context) error { 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 func (h *V1Handler) V1DocumentDELETE(c echo.Context) error { var request apirequest.V1DocumentDELETE diff --git a/cmd/server.go b/cmd/server.go index 3943c24..a5a9fbf 100644 --- a/cmd/server.go +++ b/cmd/server.go @@ -250,8 +250,6 @@ func RunServer() { groupV1.GET("/bucket/:bucket/:document", v1Handler.V1DocumentGET) - groupV1.PUT("/bucket/:bucket/:document", v1Handler.V1DocumentPUT) - if err := pave.EchoRegister[ apirequest.V1DocumentDELETE, apiresponse.V1DocumentDELETE](groupV1, &p, "/v1", http.MethodDelete, "/bucket/:bucket/:document", "Delete document in specified bucket", "V1DocumentDELETE", v1Handler.V1DocumentDELETE); err != nil {