2013-08-22 06:49:38 +00:00
|
|
|
Rails.application.routes.draw do
|
|
|
|
namespace :panel do
|
2013-08-22 07:09:17 +00:00
|
|
|
namespace :dictionary do
|
2013-08-22 06:49:38 +00:00
|
|
|
namespace :back_end do
|
2013-08-22 07:09:17 +00:00
|
|
|
resources :dictionary_vocabs do
|
2013-08-22 06:49:38 +00:00
|
|
|
collection do
|
|
|
|
get 'delete'
|
|
|
|
end
|
|
|
|
end
|
2013-08-22 07:09:17 +00:00
|
|
|
resources :dictionary_vocab_categorys
|
2013-08-22 06:49:38 +00:00
|
|
|
resources :tags
|
|
|
|
end
|
2013-08-22 07:38:06 +00:00
|
|
|
|
2013-08-22 06:49:38 +00:00
|
|
|
namespace :front_end do
|
2013-08-25 07:45:27 +00:00
|
|
|
get "dictionary_vocabs", to: "dictionary_vocabs#index"
|
2013-08-25 06:44:03 +00:00
|
|
|
resources :dictionary_vocabs
|
2013-08-25 06:40:34 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
namespace :widget do
|
|
|
|
get "dictionary_search_block", to: "dictionary_vocabs#dictionary_search_block"
|
|
|
|
get "dictionary_vocabs", to: "dictionary_vocabs#index"
|
2013-08-22 07:09:17 +00:00
|
|
|
resources :dictionary_vocabs
|
2013-08-22 06:49:38 +00:00
|
|
|
end
|
2013-08-22 07:09:17 +00:00
|
|
|
# namespace :widget do
|
|
|
|
# match "index" => "archive_files#index"
|
|
|
|
# match "archive_search_block" => "archive_files#archive_search_block"
|
|
|
|
# end
|
2013-08-22 06:49:38 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
match "/appfront/*path" => redirect("/panel/*path")
|
|
|
|
end
|