2012-01-11 12:31:52 +00:00
|
|
|
Rails.application.routes.draw do
|
|
|
|
namespace :panel do
|
|
|
|
namespace :announcement do
|
|
|
|
namespace :back_end do
|
2012-02-15 10:20:44 +00:00
|
|
|
match 'public' => "announcements#public",:as => :public
|
2012-04-25 09:08:51 +00:00
|
|
|
match 'approval_setting' => "approvals#setting" ,:as => :approval_setting,:via => :get
|
2012-04-26 08:13:21 +00:00
|
|
|
match 'approval_setting' => "approvals#update_setting" ,:as => :approval_setting,:via => :post
|
2012-04-25 09:08:51 +00:00
|
|
|
match 'approval_setting' => "approvals#user_list" ,:as => :approval_user_list,:via => :put
|
2012-11-28 05:43:48 +00:00
|
|
|
|
2012-03-14 12:05:03 +00:00
|
|
|
resources :bulletins do
|
2012-05-03 06:57:10 +00:00
|
|
|
match "approve/:bulletin_id" => "approvals#preview_and_approve",:as => :approval_preview,:via => :put
|
|
|
|
match "approve/:bulletin_id" => "approvals#approve",:as => :approve,:via => :post
|
2012-11-14 08:20:32 +00:00
|
|
|
|
2012-03-23 09:32:59 +00:00
|
|
|
member do
|
|
|
|
get 'load_quick_edit'
|
|
|
|
end
|
2012-04-11 22:50:36 +00:00
|
|
|
collection do
|
2012-09-04 01:24:12 +00:00
|
|
|
post "preview"
|
2012-09-10 03:53:59 +00:00
|
|
|
put "preview"
|
2012-08-13 16:59:01 +00:00
|
|
|
get 'delete'
|
2012-04-11 22:50:36 +00:00
|
|
|
end
|
2012-03-14 12:05:03 +00:00
|
|
|
end
|
2012-11-08 07:56:14 +00:00
|
|
|
|
2013-07-02 08:46:44 +00:00
|
|
|
resources :bulletin_links
|
2012-11-08 07:56:14 +00:00
|
|
|
|
2013-07-02 08:46:44 +00:00
|
|
|
resources :bulletin_files
|
2012-01-11 12:31:52 +00:00
|
|
|
end
|
|
|
|
namespace :front_end do
|
2012-08-07 11:21:54 +00:00
|
|
|
match "index_by_unit" => "bulletins#index_bulletins_by_unit",:as => :index_bulletins_by_unit
|
2013-12-20 10:41:12 +00:00
|
|
|
match "search_result" => "bulletins#search_result"
|
2013-12-20 14:41:33 +00:00
|
|
|
|
2012-05-03 06:57:10 +00:00
|
|
|
resources :bulletins # do
|
|
|
|
# match "preview" => "bulletins#preview_content",:as => :get_preview_content
|
|
|
|
# end
|
2012-01-18 13:34:26 +00:00
|
|
|
end
|
|
|
|
namespace :widget do
|
2012-11-21 10:42:14 +00:00
|
|
|
match "index" => "bulletins#index"
|
2012-02-20 00:34:36 +00:00
|
|
|
match "bulletins_and_web_links" => "bulletins#bulletins_and_web_links"
|
|
|
|
match "reload_bulletins" => "bulletins#reload_bulletins"
|
|
|
|
match "reload_web_links" => "bulletins#reload_web_links"
|
2012-04-29 22:27:38 +00:00
|
|
|
match "bulletins_side_bar" => "bulletins#bulletins_side_bar"
|
2012-07-20 07:47:40 +00:00
|
|
|
match "bulletins_search_block" => "bulletins#bulletins_search_block"
|
2012-01-11 12:31:52 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
2012-02-13 09:33:48 +00:00
|
|
|
end
|