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

21 lines
480 B
Ruby
Raw Normal View History

2012-01-10 10:29:11 +00:00
Rails.application.routes.draw do
namespace :panel do
namespace :new_blog do
namespace :back_end do
root :to => "posts#index"
resources :posts
resources :comments
end
namespace :front_end do
root :to => "posts#index"
resources :posts
resources :comments
2012-01-10 10:29:11 +00:00
end
namespace :widget do
match "posts" => "posts#index"
match "latest_post" => "posts#latest_post"
2012-01-10 10:29:11 +00:00
end
end
end
end