2012-10-08 08:20:21 +00:00
|
|
|
Rails.application.routes.draw do
|
|
|
|
|
|
|
|
namespace :panel do
|
|
|
|
namespace :personal_lab do
|
2013-08-05 10:35:04 +00:00
|
|
|
namespace :desktop do
|
|
|
|
match "lab_window" => "personal_labs#lab_window"
|
|
|
|
resources :personal_labs
|
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 'lab_setting' => "labs#lab_setting" ,:as => :lab_setting
|
|
|
|
|
|
|
|
resources :labs 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
|
|
|
|
end
|
|
|
|
|
2013-09-18 09:31:53 +00:00
|
|
|
resources :personal_lab_intros
|
2012-10-08 08:20:21 +00:00
|
|
|
resources :tags
|
|
|
|
end
|
|
|
|
namespace :front_end do
|
|
|
|
resources :labs
|
|
|
|
end
|
|
|
|
namespace :plugin do
|
|
|
|
resources :labs
|
|
|
|
end
|
|
|
|
namespace :widget do
|
|
|
|
match "labs" => "labs#index"
|
|
|
|
match "home_list" => "labs#home_list"
|
|
|
|
match "reload_labs" => "labs#reload_labs"
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
match "/appfront/*path" => redirect("/panel/*path")
|
|
|
|
|
|
|
|
end
|