feat(notification-settings): align chatwoot payloads

This commit is contained in:
2026-06-06 02:55:51 +08:00
parent d49aafd2c3
commit 4b2c1a97ae
5 changed files with 62 additions and 22 deletions
+3
View File
@@ -1515,8 +1515,11 @@ func registerV1Routes(g *gin.RouterGroup, h *Handlers) {
// Reference: Chatwoot resource :notification_settings, only: [:show, :update]
notifSettings := accountScoped.Group("/notification_settings")
{
notifSettings.GET("", h.NotificationSetting.Show)
notifSettings.GET("/", h.NotificationSetting.Show)
notifSettings.PATCH("", h.NotificationSetting.Update)
notifSettings.PATCH("/", h.NotificationSetting.Update)
notifSettings.PUT("", h.NotificationSetting.Update)
notifSettings.PUT("/", h.NotificationSetting.Update)
}