summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-06-04 15:06:50 +0200
committerStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-06-04 15:06:50 +0200
commit87cf6e55f76901c340ec99cf216637a2b9672cc2 (patch)
tree8f500293a84151d177a64e3ca892eb13cd20b8f4 /config
parent26456e2298376ceb5bc3d7978d7c0aa146e44039 (diff)
JSON API for PagerGroup (new)
Diffstat (limited to 'config')
-rw-r--r--config/routes.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/config/routes.rb b/config/routes.rb
index 6145765..46562eb 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -1,7 +1,7 @@
Gemeinschaft42c::Application.routes.draw do
+ # To-Do: Delete these two entries and remap path on the views.
resources :pager_group_destinations
-
resources :pager_groups
namespace :api, defaults: {format: 'json'} do
@@ -9,6 +9,7 @@ Gemeinschaft42c::Application.routes.draw do
resources :switchboards, :only => [:show, :index]
resources :switchboard_entries, :only => [:show, :index]
resources :sip_accounts, :only => [:show, :index]
+ resources :pager_groups
resources :phone_numbers, :only => [:show, :index]
end