Chore: APIs for agent bots (#676)

Co-authored-by: Pranav Raj Sreepuram <pranavrajs@gmail.com>
This commit is contained in:
Sojan Jose
2020-04-07 10:41:18 +05:30
committed by GitHub
parent 4feca1d88d
commit 1cfa756d49
14 changed files with 277 additions and 3 deletions

View File

@@ -65,7 +65,9 @@ Rails.application.routes.draw do
end
end
resources :inboxes, only: [:index, :destroy, :update]
resources :inboxes, only: [:index, :destroy, :update] do
post :set_agent_bot, on: :member
end
resources :inbox_members, only: [:create, :show], param: :inbox_id
resources :labels, only: [:index] do
collection do
@@ -104,6 +106,8 @@ Rails.application.routes.draw do
resource :profile, only: [:show, :update]
resources :agent_bots, only: [:index]
namespace :widget do
resource :contact, only: [:update]
resources :inbox_members, only: [:index]