mirror of
https://github.com/lingble/chatwoot.git
synced 2025-11-01 03:27:52 +00:00
chore: Move agent availability to Account level (#3074)
- Move agent availability to the account level
This commit is contained in:
@@ -40,7 +40,7 @@ Rails.application.routes.draw do
|
||||
resource :contact_merge, only: [:create]
|
||||
end
|
||||
|
||||
resources :agents, except: [:show, :edit, :new]
|
||||
resources :agents, only: [:index, :create, :update, :destroy]
|
||||
resources :agent_bots, only: [:index, :create, :show, :update, :destroy]
|
||||
|
||||
resources :callbacks, only: [] do
|
||||
@@ -159,7 +159,11 @@ Rails.application.routes.draw do
|
||||
resources :webhooks, only: [:create]
|
||||
end
|
||||
|
||||
resource :profile, only: [:show, :update]
|
||||
resource :profile, only: [:show, :update] do
|
||||
member do
|
||||
post :availability
|
||||
end
|
||||
end
|
||||
resource :notification_subscriptions, only: [:create]
|
||||
|
||||
namespace :widget do
|
||||
|
||||
Reference in New Issue
Block a user