27 lines
763 B
Ruby
27 lines
763 B
Ruby
Rails.application.routes.draw do
|
|
namespace :panel do
|
|
namespace :dictionary do
|
|
namespace :back_end do
|
|
resources :dictionary_vocabs do
|
|
collection do
|
|
get 'delete'
|
|
end
|
|
end
|
|
resources :dictionary_vocab_categorys
|
|
resources :tags
|
|
end
|
|
|
|
namespace :front_end do
|
|
match "dictionary_vocabs", to: "dictionary_vocabs#index"
|
|
resources :dictionary_vocabs
|
|
end
|
|
|
|
namespace :widget do
|
|
match "dictionary_search_block", to: "dictionary_vocabs#dictionary_search_block"
|
|
match "dictionary_vocabs", to: "dictionary_vocabs#index"
|
|
resources :dictionary_vocabs
|
|
end
|
|
end
|
|
end
|
|
match "/appfront/*path" => redirect("/panel/*path")
|
|
end |