Changeset 0.28.2 (#183)

This commit is contained in:
2026-03-13 12:19:55 +00:00
parent 9b9e2eb756
commit f94243fbf3
13 changed files with 1070 additions and 21 deletions

View File

@@ -184,7 +184,7 @@ func (h *NotificationHandler) ListPreferences(c *gin.Context) {
}
if h.stores.NotifPrefs == nil {
c.JSON(http.StatusOK, []models.NotificationPreference{})
c.JSON(http.StatusOK, gin.H{"data": []models.NotificationPreference{}})
return
}
@@ -196,7 +196,7 @@ func (h *NotificationHandler) ListPreferences(c *gin.Context) {
if prefs == nil {
prefs = []models.NotificationPreference{}
}
c.JSON(http.StatusOK, prefs)
c.JSON(http.StatusOK, gin.H{"data": prefs})
}
// PUT /api/v1/notifications/preferences/:type