aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLouise Crow <louise.crow@gmail.com>2014-11-28 15:19:01 +0000
committerLouise Crow <louise.crow@gmail.com>2014-12-15 17:27:43 +0000
commitc793ac3b8c0ac20e795e086544ebfcd96be1d0c0 (patch)
treed8af1fe099f449c19f8c2303aa77009fbc17b2e7
parentde5c998d72bac9e13c56b6089169da9647d014b2 (diff)
Add routes for admin of holidays
-rw-r--r--config/routes.rb15
1 files changed, 15 insertions, 0 deletions
diff --git a/config/routes.rb b/config/routes.rb
index 4b2eb5695..2886c2846 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -200,6 +200,21 @@ Alaveteli::Application.routes.draw do
end
####
+ #### AdminHoliday controller
+ scope '/admin', :as => 'admin' do
+ resources :holidays,
+ :controller => 'admin_holidays'
+ end
+ ####
+
+ #### AdminHolidayImports controller
+ scope '/admin', :as => 'admin' do
+ resources :holiday_imports,
+ :controller => 'admin_holiday_imports',
+ :only => [:new, :create]
+ end
+ ####
+
#### AdminPublicBodyChangeRequest controller
match '/admin/change_request/edit/:id' => 'admin_public_body_change_requests#edit', :as => :admin_change_request_edit
match '/admin/change_request/update/:id' => 'admin_public_body_change_requests#update', :as => :admin_change_request_update