2012-09-24 06:10:44 +00:00
|
|
|
Rails.application.routes.draw do
|
|
|
|
|
|
|
|
namespace :panel do
|
|
|
|
namespace :personal_project do
|
2013-08-05 10:35:04 +00:00
|
|
|
namespace :desktop do
|
|
|
|
match "project_window" => "personal_projects#project_window"
|
|
|
|
resources :personal_projects
|
|
|
|
end
|
2012-09-24 06:10:44 +00:00
|
|
|
namespace :back_end do
|
|
|
|
|
|
|
|
match 'project_setting' => "projects#project_setting" ,:as => :project_setting
|
|
|
|
|
|
|
|
resources :projects do
|
|
|
|
collection do
|
|
|
|
get 'delete'
|
2013-09-18 09:31:53 +00:00
|
|
|
get 'data_share'
|
2012-09-24 06:10:44 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
match "project_category_quick_add" => "projects#project_category_quick_add" ,:as => :project_category_quick_add
|
|
|
|
match "project_category_quick_edit" => "projects#project_category_quick_edit" ,:as => :project_category_quick_edit
|
|
|
|
end
|
2013-09-18 09:31:53 +00:00
|
|
|
|
|
|
|
resources :personal_project_intros
|
|
|
|
resources :project_categorys
|
2012-09-24 06:10:44 +00:00
|
|
|
resources :tags
|
|
|
|
end
|
|
|
|
namespace :front_end do
|
|
|
|
resources :projects
|
|
|
|
end
|
|
|
|
namespace :plugin do
|
|
|
|
resources :projects
|
|
|
|
end
|
|
|
|
namespace :widget do
|
|
|
|
match "projects" => "projects#index"
|
|
|
|
match "home_list" => "projects#home_list"
|
|
|
|
match "reload_projects" => "projects#reload_projects"
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
match "/appfront/*path" => redirect("/panel/*path")
|
|
|
|
|
|
|
|
end
|