change!: renommer HandleV1Spec à V1SpecGET

BREAKING: renommer `HandleV1Spec` à `V1SpecGET`
This commit is contained in:
Victor Lacasse-Beaudoin 2023-11-20 15:28:37 -05:00
parent 8e40050f81
commit ffd8109d27
2 changed files with 2 additions and 2 deletions
apihandler
cmd

View file

@ -12,7 +12,7 @@ import (
const DescriptionV1SpecGET string = "Afficher le API spec en format pave" 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 request apirequest.V1SpecGET
var response apiresponse.V1SpecGET var response apiresponse.V1SpecGET

View file

@ -226,7 +226,7 @@ func RunServer() {
if err := pave.EchoRegister[ if err := pave.EchoRegister[
apirequest.V1SpecGET, 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) log.Fatal(err)
} }