diff --git a/controllers/text_templates_controller.go b/controllers/text_templates_controller.go index f0a9aaf..454ff8e 100644 --- a/controllers/text_templates_controller.go +++ b/controllers/text_templates_controller.go @@ -75,7 +75,7 @@ func ListTextTemplates(c *gin.Context) { } // Respond with the text templates and the total count - c.JSON(http.StatusOK, gin.H{"total": total, "text_templates": textTemplates}) + c.JSON(http.StatusOK, gin.H{"total": total, "data": textTemplates}) } func CreateTextTemplate(c *gin.Context) {