32 lines
834 B
Ruby
32 lines
834 B
Ruby
Rails.application.routes.draw do
|
|
|
|
namespace :panel do
|
|
namespace :personal_journal do
|
|
namespace :back_end do
|
|
resources :writing_journals do
|
|
collection do
|
|
get 'delete'
|
|
end
|
|
end
|
|
resources :journal_paper_types
|
|
resources :journal_author_types
|
|
resources :journal_level_types
|
|
resources :tags
|
|
end
|
|
namespace :front_end do
|
|
resources :writing_journals
|
|
end
|
|
namespace :plugin do
|
|
resources :writing_journals
|
|
end
|
|
namespace :widget do
|
|
match "writing_journals" => "writing_journals#index"
|
|
match "home_list" => "writing_journals#home_list"
|
|
match "reload_writing_journals" => "writing_journals#reload_writing_journals"
|
|
end
|
|
end
|
|
end
|
|
match "/appfront/*path" => redirect("/panel/*path")
|
|
|
|
end
|