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

32 lines
834 B
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
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