Align GoChat with Chatwoot frontend contracts

This commit is contained in:
2026-06-13 22:13:32 +08:00
parent 71abf58636
commit d884fdda0a
162 changed files with 9825 additions and 528 deletions
@@ -203,7 +203,9 @@ func (h *CustomRoleHandler) Delete(c *gin.Context) {
func RegisterCustomRoleRoutes(rg *gin.RouterGroup, h *CustomRoleHandler) {
customRoles := rg.Group("/custom_roles")
{
customRoles.GET("", h.List)
customRoles.GET("/", h.List)
customRoles.POST("", h.Create)
customRoles.POST("/", h.Create)
customRoles.GET("/:id", h.Get)
customRoles.PATCH("/:id", h.Update)