config/routes.rb in miniblog-1.0.0.beta vs config/routes.rb in miniblog-1.0.0

- old
+ new

@@ -1,8 +1,11 @@ Miniblog::Engine.routes.draw do root :to => 'posts#index' + resources :posts, only: :show + get 'sitemap.(:format)', to: 'sitemap#show' + namespace :admin do resources :authors, only: :index match 'posts/:state', :to => 'posts#index', :constraints => { :state => /(published|drafted)/ }, @@ -20,7 +23,8 @@ end resources :preview, only: :show root :to => 'posts#index' + end end