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

26 lines
695 B
Ruby
Raw Normal View History

2011-11-18 08:43:14 +00:00
Rails.application.routes.draw do
namespace :panel do
namespace :blog do
2011-12-20 08:47:17 +00:00
namespace :back_end do
root :to => "posts#index"
resources :posts
resources :comments
end
namespace :front_end do
root :to => "posts#index"
match "show/:id" => "posts#show" ,:as => :post
match "comments" => "comments#create",:as => :comments
end
namespace :widget do
root :to => "posts#index"
match "latest_post" => "posts#latest_post"
end
2011-11-18 08:43:14 +00:00
end
end
2011-12-20 08:47:17 +00:00
# match "appfront/blog/front_end/show/:id" => "posts#frontend_show" ,:as => :appfront_blog_show
match "/appfront/*path" => redirect("/panel/*path")
2011-11-18 08:43:14 +00:00
end