mirror of
https://github.com/abhinavxd/libredesk.git
synced 2026-09-22 02:23:32 +00:00
rename handler
This commit is contained in:
+2
-2
@@ -331,8 +331,8 @@ func handleGetConversationParticipants(r *fastglue.Request) error {
|
||||
return r.SendEnvelope(p)
|
||||
}
|
||||
|
||||
// handleUpdateConversationUserAssignee updates the user assigned to a conversation.
|
||||
func handleUpdateConversationUserAssignee(r *fastglue.Request) error {
|
||||
// handleUpdateUserAssignee updates the user assigned to a conversation.
|
||||
func handleUpdateUserAssignee(r *fastglue.Request) error {
|
||||
var (
|
||||
app = r.Context.(*App)
|
||||
uuid = r.RequestCtx.UserValue("uuid").(string)
|
||||
|
||||
+1
-1
@@ -50,7 +50,7 @@ func initHandlers(g *fastglue.Fastglue, hub *ws.Hub) {
|
||||
g.GET("/api/v1/views/{id}/conversations", perm(handleGetViewConversations, "conversations:read"))
|
||||
g.GET("/api/v1/conversations/{uuid}", perm(handleGetConversation, "conversations:read"))
|
||||
g.GET("/api/v1/conversations/{uuid}/participants", perm(handleGetConversationParticipants, "conversations:read"))
|
||||
g.PUT("/api/v1/conversations/{uuid}/assignee/user", perm(handleUpdateConversationUserAssignee, "conversations:update_user_assignee"))
|
||||
g.PUT("/api/v1/conversations/{uuid}/assignee/user", perm(handleUpdateUserAssignee, "conversations:update_user_assignee"))
|
||||
g.PUT("/api/v1/conversations/{uuid}/assignee/team", perm(handleUpdateTeamAssignee, "conversations:update_team_assignee"))
|
||||
g.PUT("/api/v1/conversations/{uuid}/assignee/user/remove", perm(handleRemoveUserAssignee, "conversations:update_user_assignee"))
|
||||
g.PUT("/api/v1/conversations/{uuid}/assignee/team/remove", perm(handleRemoveTeamAssignee, "conversations:update_team_assignee"))
|
||||
|
||||
Reference in New Issue
Block a user