summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorPeter Kozak <spag@golwen.net>2013-03-08 05:50:02 -0500
committerPeter Kozak <spag@golwen.net>2013-03-08 05:50:02 -0500
commit4d7d5ad238990582d6c90a25272f2141ea9a3b28 (patch)
tree135c475c7b0b78a8a4f78e47c97040202fbc9d1d /config
parent7149ddd968787eca9d05feea315d4fa3774fe54e (diff)
toggle action added to acd_agents
Diffstat (limited to 'config')
-rw-r--r--config/routes.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/config/routes.rb b/config/routes.rb
index 0b953ee..d74df15 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -57,8 +57,11 @@ Gemeinschaft42c::Application.routes.draw do
collection { post :sort }
end
- resources :acd_agents, :only => [] do
+ resources :acd_agents do
resources :phone_numbers
+ member do
+ get 'toggle'
+ end
end
resources :automatic_call_distributors, :only => [] do
@@ -260,6 +263,7 @@ Gemeinschaft42c::Application.routes.draw do
resources :call_forwards
resources :ringtones
resources :calls
+ resources :acd_agents
resources :call_histories do
collection do
delete 'destroy_multiple'