From 74700cc8034980334e7df466f313287a41d2b8a6 Mon Sep 17 00:00:00 2001 From: kim <89579420+NyaaaWhatsUpDoc@users.noreply.github.com> Date: Mon, 27 Nov 2023 14:00:57 +0000 Subject: [performance] http response encoding / writing improvements (#2374) --- internal/api/client/accounts/accountdelete.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'internal/api/client/accounts/accountdelete.go') diff --git a/internal/api/client/accounts/accountdelete.go b/internal/api/client/accounts/accountdelete.go index 242902cab..947634f70 100644 --- a/internal/api/client/accounts/accountdelete.go +++ b/internal/api/client/accounts/accountdelete.go @@ -96,5 +96,7 @@ func (m *Module) AccountDeletePOSTHandler(c *gin.Context) { return } - c.JSON(http.StatusAccepted, gin.H{"message": "accepted"}) + apiutil.JSON(c, http.StatusAccepted, map[string]string{ + "message": "accepted", + }) } -- cgit v1.2.3