From ffd8109d275a09cfed1aa885dcf301b5aa66a20c Mon Sep 17 00:00:00 2001 From: Victor Lacasse-Beaudoin Date: Mon, 20 Nov 2023 15:28:37 -0500 Subject: [PATCH] =?UTF-8?q?change!:=20renommer=20HandleV1Spec=20=C3=A0=20V?= =?UTF-8?q?1SpecGET?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit BREAKING: renommer `HandleV1Spec` à `V1SpecGET` --- apihandler/spec.go | 2 +- cmd/server.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apihandler/spec.go b/apihandler/spec.go index de394eb..d638817 100644 --- a/apihandler/spec.go +++ b/apihandler/spec.go @@ -12,7 +12,7 @@ import ( const DescriptionV1SpecGET string = "Afficher le API spec en format pave" -func (h *V1Handler) HandleV1Spec(c echo.Context) error { +func (h *V1Handler) V1SpecGET(c echo.Context) error { var request apirequest.V1SpecGET var response apiresponse.V1SpecGET diff --git a/cmd/server.go b/cmd/server.go index 22ca33d..1dbc918 100644 --- a/cmd/server.go +++ b/cmd/server.go @@ -226,7 +226,7 @@ func RunServer() { if err := pave.EchoRegister[ apirequest.V1SpecGET, - apiresponse.V1SpecGET](groupV1, &p, "/v1", http.MethodGet, "/spec", apihandler.DescriptionV1SpecGET, "V1SpecGET", v1Handler.HandleV1Spec); err != nil { + apiresponse.V1SpecGET](groupV1, &p, "/v1", http.MethodGet, "/spec", apihandler.DescriptionV1SpecGET, "V1SpecGET", v1Handler.V1SpecGET); err != nil { log.Fatal(err) }