31 lines
765 B
Ruby
31 lines
765 B
Ruby
Rails.application.routes.draw do
|
|
|
|
namespace :panel do
|
|
namespace :personal_book do
|
|
namespace :back_end do
|
|
resources :writing_books do
|
|
collection do
|
|
get 'delete'
|
|
end
|
|
end
|
|
resources :book_paper_types
|
|
resources :book_author_types
|
|
resources :tags
|
|
end
|
|
namespace :front_end do
|
|
resources :writing_books
|
|
end
|
|
namespace :plugin do
|
|
resources :writing_books
|
|
end
|
|
namespace :widget do
|
|
match "writing_books" => "writing_books#index"
|
|
match "home_list" => "writing_books#home_list"
|
|
match "reload_writing_books" => "writing_books#reload_writing_books"
|
|
end
|
|
end
|
|
end
|
|
match "/appfront/*path" => redirect("/panel/*path")
|
|
|
|
end
|