From 925e3d987c156442421e633725567a4f98ae652e Mon Sep 17 00:00:00 2001 From: Paul Hayes Date: Tue, 20 Jun 2017 08:22:13 +0100 Subject: [PATCH] Move browse sectors index JSON into child route --- config/routes.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/config/routes.rb b/config/routes.rb index 62731122..086f4b80 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -8,7 +8,8 @@ get "#{APP_SLUG}/location" => "licence_finder#business_location", :as => :business_location post "#{APP_SLUG}/location" => "licence_finder#business_location_submit", :as => :business_location_submit get "#{APP_SLUG}/licences" => "licence_finder#licences", :as => :licences - get "#{APP_SLUG}/browse-sectors" => "licence_finder#browse_sector_index", :as => :browse_sector_index + get "#{APP_SLUG}/browse-sectors" => "licence_finder#browse_sector_index" + get "#{APP_SLUG}/browse-sectors/index" => "licence_finder#browse_sector_index", :as => :browse_sector_index get "#{APP_SLUG}/browse-sectors/:sector" => "licence_finder#browse_sector", :as => :browse_sector get "#{APP_SLUG}/browse-sectors/:sector_parent/:sector" => "licence_finder#browse_sector_child", :as => :browse_sector_child