feat: Assignable agents API (#2131)

`inboxes/id/assignable_agents` returns all users that have permission to a conversation happening in that inbox.
This commit is contained in:
Sojan Jose
2021-04-20 13:46:20 +05:30
committed by GitHub
parent fb582614f2
commit 4635e5bb44
5 changed files with 46 additions and 0 deletions

View File

@@ -88,6 +88,7 @@ Rails.application.routes.draw do
end
resources :inboxes, only: [:index, :create, :update, :destroy] do
get :assignable_agents, on: :member
post :set_agent_bot, on: :member
end
resources :inbox_members, only: [:create, :show], param: :inbox_id