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
@@ -371,7 +371,9 @@ func (h *AgentCapacityHandler) DeleteUser(c *gin.Context) {
func RegisterAgentCapacityRoutes(rg *gin.RouterGroup, h *AgentCapacityHandler) {
policies := rg.Group("/agent_capacity_policies")
{
policies.GET("", h.List)
policies.GET("/", h.List)
policies.POST("", h.Create)
policies.POST("/", h.Create)
policies.GET("/:id", h.Get)
policies.PUT("/:id", h.Update)