From 3ff212d6d2cfbacdf2934b55f495fe5ce155fa18 Mon Sep 17 00:00:00 2001 From: Senad Uka Date: Tue, 17 Oct 2023 11:46:28 +0200 Subject: [PATCH] Upstream sync. --- controllers/text_templates_controller.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {