Align GoChat with Chatwoot frontend contracts
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user