54 lines
2.1 KiB
Ruby
54 lines
2.1 KiB
Ruby
Rails.application.routes.draw do
|
|
namespace :panel do
|
|
namespace :personal_journal do
|
|
namespace :desktop do
|
|
match 'journal_p'=>'journal_p#journal_p'
|
|
match 'get_journals_json' => 'journal_pages#get_journals_json'
|
|
resources :journal_pages, except: :show
|
|
resources :journal_lists, only: :index
|
|
resources :co_authors, except: :show
|
|
resources :co_author_relations, except: :show
|
|
end
|
|
|
|
namespace :back_end do
|
|
match 'writing_journal_setting' => "writing_journals#writing_journal_setting" ,:as => :writing_journal_setting
|
|
resources :writing_journals do
|
|
collection do
|
|
get 'delete'
|
|
end
|
|
|
|
match "level_type_quick_add" => "writing_journals#level_type_quick_add" ,:as => :level_type_quick_add
|
|
match "level_type_quick_edit" => "writing_journals#level_type_quick_edit" ,:as => :level_type_quick_edit
|
|
match "author_type_quick_add" => "writing_journals#author_type_quick_add" ,:as => :author_type_quick_add
|
|
match "author_type_quick_edit" => "writing_journals#author_type_quick_edit" ,:as => :author_type_quick_edit
|
|
match "paper_type_quick_add" => "writing_journals#paper_type_quick_add" ,:as => :paper_type_quick_add
|
|
match "paper_type_quick_edit" => "writing_journals#paper_type_quick_edit" ,:as => :paper_type_quick_edit
|
|
match "tag_quick_add" => "writing_journals#tag_quick_add" ,:as => :tag_quick_add
|
|
match "tag_quick_edit" => "writing_journals#tag_quick_edit" ,:as => :tag_quick_edit
|
|
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
|