Ajouter framework de documentation #35

Merged
vlbeaudoin merged 10 commits from feature/minio into main 2023-04-24 16:44:33 -04:00
Showing only changes of commit 6cc6d75afd - Show all commits

View file

@ -199,9 +199,16 @@ func handleV1Seed(c echo.Context) error {
} }
new_buckets = append(new_buckets, bucket) new_buckets = append(new_buckets, bucket)
} }
var message string
if len(new_buckets) == 0 {
message = "All buckets already exist"
} else {
message = "Buckets successfully created"
}
return c.JSON(http.StatusOK, map[string]interface{}{ return c.JSON(http.StatusOK, map[string]interface{}{
"message": "Buckets successfully created", "message": message,
"buckets": new_buckets, "buckets": new_buckets,
}) })
} }