Déplacer déclarations de route à pave pour API spec autogénérée #176
1 changed files with 1 additions and 1 deletions
|
@ -23,7 +23,7 @@ func (h *V1Handler) V1SpecGET(c echo.Context) error {
|
|||
return c.JSON(response.StatusCode, response)
|
||||
}
|
||||
|
||||
response.Data.Spec = fmt.Sprintf("# pave spec for agecem-org %s", version.Version())
|
||||
response.Data.Spec = fmt.Sprintf("# pave spec for agecem-org %s\n", version.Version())
|
||||
|
||||
for _, route := range h.Pave.SortedRouteStrings() {
|
||||
response.Data.Spec = fmt.Sprintf("%s%s", response.Data.Spec, route)
|
||||
|
|
Loading…
Reference in a new issue