27 lines
1.0 KiB
Ruby
27 lines
1.0 KiB
Ruby
Rails.application.routes.draw do
|
|
namespace :panel do
|
|
namespace :announcement do
|
|
namespace :back_end do
|
|
root :to => "bulletins#index"
|
|
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
|
|
end
|
|
resources :bulletin_categorys, :controller => 'bulletin_categorys' do
|
|
match "quick_edit/:bulletin_category_id" => "bulletin_categorys#quick_edit" ,:as => :quick_edit
|
|
end
|
|
resources :tags
|
|
end
|
|
namespace :front_end do
|
|
root :to => "bulletins#index"
|
|
resources :bulletins
|
|
end
|
|
namespace :widget do
|
|
match "bulletins" => "bulletins#index"
|
|
match "bulletins_and_web_links" => "bulletins#bulletins_and_web_links"
|
|
match "reload_bulletins" => "bulletins#reload_bulletins"
|
|
match "reload_web_links" => "bulletins#reload_web_links"
|
|
end
|
|
end
|
|
end
|
|
end |