orbit-personalhonor/config/routes.rb

44 lines
1.2 KiB
Ruby

Rails.application.routes.draw do
namespace :panel do
namespace :personal_honor do
namespace :desktop do
match "honor_window" => "personal_honors#honors_window"
resources :personal_honors
resources :plugin_intros
end
namespace :back_end do
match 'honor_setting' => "honors#honor_setting" ,:as => :honor_setting
resources :honors do
collection do
get 'delete'
get 'data_share'
end
match "honor_category_quick_add" => "honors#honor_category_quick_add" ,:as => :honor_category_quick_add
match "honor_category_quick_edit" => "honors#honor_category_quick_edit" ,:as => :honor_category_quick_edit
end
resources :personal_honor_intros
resources :honor_categorys
resources :tags
end
namespace :front_end do
resources :honors
end
namespace :plugin do
resources :honors
end
namespace :widget do
match "honors" => "honors#index"
match "home_list" => "honors#home_list"
match "reload_honors" => "honors#reload_honors"
end
end
end
match "/appfront/*path" => redirect("/panel/*path")
end