33 lines
763 B
Ruby
33 lines
763 B
Ruby
|
Rails.application.routes.draw do
|
||
|
|
||
|
namespace :panel do
|
||
|
namespace :personal_diploma do
|
||
|
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
|