Orbit/vendor/built_in_modules/announcement/config/routes.rb

20 lines
570 B
Ruby

Rails.application.routes.draw do
namespace :panel do
namespace :announcement do
namespace :back_end do
root :to => "bulletins#index"
resources :bulletins
resources :bulletin_categorys, :controller => 'bulletin_categorys'
end
namespace :front_end do
root :to => "bulletins#index"
resources :bulletins
match "show/:id" => "bulletins#show" ,:as => :bulletin
# match "comments" => "comments#create",:as => :comments
end
end
end
match "/appfront/*path" => redirect("/panel/*path")
end