Déplacer déclarations de route à pave pour API spec autogénérée #176

Merged
vlbeaudoin merged 17 commits from feature/pave into main 2023-11-20 17:05:41 -05:00
Showing only changes of commit 787cb578a1 - Show all commits

View file

@ -23,7 +23,7 @@ func (h *V1Handler) V1SpecGET(c echo.Context) error {
return c.JSON(response.StatusCode, response) 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() { for _, route := range h.Pave.SortedRouteStrings() {
response.Data.Spec = fmt.Sprintf("%s%s", response.Data.Spec, route) response.Data.Spec = fmt.Sprintf("%s%s", response.Data.Spec, route)