2012-10-08 08:20:21 +00:00
|
|
|
Rails.application.routes.draw do
|
|
|
|
|
|
|
|
namespace :panel do
|
|
|
|
namespace :personal_experience do
|
2013-08-05 10:35:04 +00:00
|
|
|
namespace :desktop do
|
|
|
|
match "experience_window" => "personal_experiences#experience_window"
|
|
|
|
resources :personal_experiences
|
2013-09-25 10:11:02 +00:00
|
|
|
resources :plugin_intros
|
2013-08-05 10:35:04 +00:00
|
|
|
end
|
2012-10-08 08:20:21 +00:00
|
|
|
namespace :back_end do
|
|
|
|
|
|
|
|
match 'experience_setting' => "experiences#experience_setting" ,:as => :experience_setting
|
|
|
|
|
|
|
|
resources :experiences do
|
|
|
|
collection do
|
|
|
|
get 'delete'
|
2013-09-18 09:31:53 +00:00
|
|
|
get 'data_share'
|
2012-10-08 08:20:21 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
match "experience_category_quick_add" => "experiences#experience_category_quick_add" ,:as => :experience_category_quick_add
|
|
|
|
match "experience_category_quick_edit" => "experiences#experience_category_quick_edit" ,:as => :experience_category_quick_edit
|
|
|
|
end
|
2013-09-18 09:31:53 +00:00
|
|
|
resources :personal_experience_intros
|
|
|
|
resources :experience_categorys
|
2012-10-08 08:20:21 +00:00
|
|
|
resources :tags
|
|
|
|
end
|
|
|
|
namespace :front_end do
|
|
|
|
resources :experiences
|
|
|
|
end
|
|
|
|
namespace :plugin do
|
|
|
|
resources :experiences
|
|
|
|
end
|
|
|
|
namespace :widget do
|
|
|
|
match "experiences" => "experiences#index"
|
|
|
|
match "home_list" => "experiences#home_list"
|
|
|
|
match "reload_experiences" => "experiences#reload_experiences"
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
match "/appfront/*path" => redirect("/panel/*path")
|
|
|
|
|
|
|
|
end
|