High performance, self-hosted, newsletter and mailing list manager with a modern dashboard. Single binary app.
JavaScript campaigncampaign-managementemail-marketingemail-subscriptionlistmonkmailing-listnewsletternewsletter-managementnewsletter-softwareself-hostedsms-gatewaysmtptransactional-emails
Fix missing API response data{} envelope
Kailash Nadh39aa56454eec
diff --git a/subscribers.go b/subscribers.goindex c76d8d9a..dda279dc 100644--- a/subscribers.go+++ b/subscribers.go@@ -76,7 +76,7 @@ func handleGetSubscriber(c echo.Context) error {return err}- return c.JSON(http.StatusOK, sub)+ return c.JSON(http.StatusOK, okResp{sub})}// handleQuerySubscribers handles querying subscribers based on an arbitrary SQL expression.@@ -214,7 +214,7 @@ func handleUpdateSubscriber(c echo.Context) error {}_ = sendOptinConfirmation(sub, []int64(req.Lists), app)- return c.JSON(http.StatusOK, sub)+ return c.JSON(http.StatusOK, okResp{sub})}// handleGetSubscriberSendOptin sends an optin confirmation e-mail to a subscriber.