24 lines
561 B
Ruby
24 lines
561 B
Ruby
Rails.application.routes.draw do
|
|
namespace :panel do
|
|
namespace :web_resource do
|
|
namespace :back_end do
|
|
resources :web_links do
|
|
collection do
|
|
get 'delete'
|
|
end
|
|
end
|
|
resources :web_link_categorys
|
|
resources :tags
|
|
end
|
|
namespace :front_end do
|
|
match "web_links" => "web_links#index"
|
|
resources :web_links
|
|
end
|
|
namespace :widget do
|
|
match "index" => "web_links#index"
|
|
end
|
|
end
|
|
end
|
|
match "/appfront/*path" => redirect("/panel/*path")
|
|
end
|