Déplacer déclarations de route à pave pour API spec autogénérée #176
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue