feat(captain): align preferences payloads

This commit is contained in:
2026-06-05 12:56:25 +08:00
parent fb1c739589
commit 57f864e68c
10 changed files with 436 additions and 168 deletions
+2 -2
View File
@@ -1265,10 +1265,10 @@ func registerV1Routes(g *gin.RouterGroup, h *Handlers) {
// Reference: Chatwoot Captain::PreferencesController
preferences := captain.Group("/preferences")
{
preferences.POST("/", h.CaptainPreference.Create)
preferences.GET("", h.CaptainPreference.Get)
preferences.GET("/", h.CaptainPreference.Get)
preferences.PUT("", h.CaptainPreference.Update)
preferences.PUT("/", h.CaptainPreference.Update)
preferences.DELETE("/", h.CaptainPreference.Delete)
}
// M12: Label Suggestion + Follow Up (GET endpoints)