fix: ajouter retour de ligne manquant à pave spec

This commit is contained in:
Victor Lacasse-Beaudoin 2023-11-20 15:53:17 -05:00
parent 8e03ba001f
commit 787cb578a1

View file

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