Orbit/vendor/built_in_modules/personal_journal/config/routes.rb

54 lines
2.2 KiB
Ruby
Raw Normal View History

2012-09-13 10:13:34 +00:00
Rails.application.routes.draw do
namespace :panel do
namespace :personal_journal do
2013-01-08 10:12:28 +00:00
namespace :desktop do
match 'journal_p'=>'journal_p#journal_p'
match 'get_journals_json' => 'journal_pages#get_journals_json'
2013-01-09 02:57:52 +00:00
match 'journal_type' => 'journal_pages#journal_type'
2013-01-08 10:12:28 +00:00
resources :journal_pages, except: :show
resources :co_authors, except: :show
resources :co_author_relations, except: :show
end
2012-09-13 10:13:34 +00:00
namespace :back_end do
2012-09-17 03:02:11 +00:00
match 'writing_journal_setting' => "writing_journals#writing_journal_setting" ,:as => :writing_journal_setting
2012-09-13 10:13:34 +00:00
resources :writing_journals do
collection do
get 'delete'
end
2013-01-08 10:12:28 +00:00
2012-09-17 03:02:11 +00:00
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
2012-09-13 10:13:34 +00:00
end
2013-01-08 10:12:28 +00:00
resources :journal_paper_types
resources :journal_author_types
resources :journal_level_types
2012-09-13 10:13:34 +00:00
resources :tags
end
2013-01-08 10:12:28 +00:00
2012-09-13 10:13:34 +00:00
namespace :front_end do
resources :writing_journals
end
2013-01-08 10:12:28 +00:00
2012-09-13 10:13:34 +00:00
namespace :plugin do
resources :writing_journals
end
2013-01-08 10:12:28 +00:00
2012-09-13 10:13:34 +00:00
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
2013-01-08 10:12:28 +00:00
match "/appfront/*path" => redirect("/panel/*path")
2012-09-13 10:13:34 +00:00
end