From 87cf6e55f76901c340ec99cf216637a2b9672cc2 Mon Sep 17 00:00:00 2001 From: Stefan Wintermeyer Date: Tue, 4 Jun 2013 15:06:50 +0200 Subject: JSON API for PagerGroup (new) --- config/routes.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'config') 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 -- cgit v1.2.3