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
|
|
|
|
match 'approval_setting' => "approvals#user_list" ,:as => :approval_user_list,:via => :put
|
2012-04-24 08:06:42 +00:00
|
|
|
match 'update_setting' => "approvals#update_setting" ,:as => :approval_update_setting
|
2012-03-16 03:09:44 +00:00
|
|
|
|
2012-03-14 12:05:03 +00:00
|
|
|
resources :bulletins do
|
|
|
|
match "link_quick_add/:bulletin_id" => "bulletins#link_quick_add" ,:as => :link_quick_add
|
|
|
|
match "link_quick_edit/:bulletin_id" => "bulletins#link_quick_edit" ,:as => :link_quick_edit
|
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
|
|
|
|
post 'delete'
|
|
|
|
end
|
2012-03-23 10:04:11 +00:00
|
|
|
match "file_quick_add/:bulletin_id" => "bulletins#file_quick_add" ,:as => :file_quick_add
|
|
|
|
match "file_quick_edit/:bulletin_id" => "bulletins#file_quick_edit" ,:as => :file_quick_edit
|
2012-03-14 12:05:03 +00:00
|
|
|
end
|
2012-03-23 10:04:11 +00:00
|
|
|
|
2012-04-05 06:48:31 +00:00
|
|
|
resources :bulletin_categorys
|
2012-03-23 10:04:11 +00:00
|
|
|
|
|
|
|
resources :bulletin_links, :controller => 'bulletin_links' do
|
|
|
|
match "link_quick_edit/:bulletin_link_id" => "bulletin_links#link_quick_edit" ,:as => :link_quick_edit
|
|
|
|
end
|
|
|
|
|
|
|
|
resources :bulletin_files, :controller => 'bulletin_files' do
|
|
|
|
match "file_quick_edit/:bulletin_file_id" => "bulletin_files#file_quick_edit" ,:as => :file_quick_edit
|
|
|
|
end
|
|
|
|
|
2012-02-14 16:32:20 +00:00
|
|
|
resources :tags
|
2012-01-11 12:31:52 +00:00
|
|
|
end
|
|
|
|
namespace :front_end do
|
|
|
|
resources :bulletins
|
2012-01-18 13:34:26 +00:00
|
|
|
end
|
|
|
|
namespace :widget do
|
2012-02-16 04:16:27 +00:00
|
|
|
match "bulletins" => "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-01-11 12:31:52 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
2012-02-13 09:33:48 +00:00
|
|
|
end
|