2012-10-08 08:20:21 +00:00
|
|
|
Rails.application.routes.draw do
|
|
|
|
|
|
|
|
namespace :panel do
|
|
|
|
namespace :personal_diploma do
|
2013-08-05 10:35:04 +00:00
|
|
|
namespace :desktop do
|
|
|
|
match "diploma_window" => "personal_diplomas#diploma_window"
|
|
|
|
resources :personal_diplomas
|
|
|
|
end
|
2012-10-08 08:20:21 +00:00
|
|
|
namespace :back_end do
|
|
|
|
|
|
|
|
match 'diploma_setting' => "diplomas#diploma_setting" ,:as => :diploma_setting
|
|
|
|
|
|
|
|
resources :diplomas do
|
|
|
|
collection do
|
|
|
|
get 'delete'
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
resources :tags
|
|
|
|
end
|
|
|
|
namespace :front_end do
|
|
|
|
resources :diplomas
|
|
|
|
end
|
|
|
|
namespace :plugin do
|
|
|
|
resources :diplomas
|
|
|
|
end
|
|
|
|
namespace :widget do
|
|
|
|
match "diplomas" => "diplomas#index"
|
|
|
|
match "home_list" => "diplomas#home_list"
|
|
|
|
match "reload_diplomas" => "diplomas#reload_diplomas"
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
match "/appfront/*path" => redirect("/panel/*path")
|
|
|
|
|
|
|
|
end
|