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) }