fix: rename request-human route to handoff for Iris MVC compatibility
PostHandoff maps to POST /handoff correctly in Iris MVC auto-routing.
This commit is contained in:
@@ -185,7 +185,7 @@ func (c *ConversationController) PostTransfer() *web.JsonResult {
|
||||
return web.JsonSuccess()
|
||||
}
|
||||
|
||||
func (c *ConversationController) PostRequest_human() *web.JsonResult {
|
||||
func (c *ConversationController) PostHandoff() *web.JsonResult {
|
||||
operator, err := services.AuthService.RequirePermission(c.Ctx, constants.PermissionConversationAssign)
|
||||
if err != nil {
|
||||
return web.JsonError(err)
|
||||
|
||||
Reference in New Issue
Block a user