config/routes.rb in phcpress-9.0.1 vs config/routes.rb in phcpress-9.1.0

- old
+ new

@@ -1,27 +1,27 @@ -Phcpress::Engine.routes.draw do - - # Frontend - namespace :frontend do - resources :articles - end - - # API - namespace :api do - namespace :v1 do - resources :posts, defaults: {format: 'json'} - resources :categories, defaults: {format: 'json'} - end - end - - # Article Routes - namespace :articles do - resources :posts, class_name: 'Phcpress::Articles::Post' - end - - # Module Routes - namespace :modules do - resources :connections, class_name: 'Phcpress::Modules::Connection' - resources :categories, class_name: 'Phcpress::Modules::Category' - end - -end +Phcpress::Engine.routes.draw do + + # Frontend + namespace :frontend do + resources :articles + end + + # API + namespace :api do + namespace :v1 do + resources :posts, defaults: {format: 'json'} + resources :categories, defaults: {format: 'json'} + end + end + + # Article Routes + namespace :articles do + resources :posts, class_name: 'Phcpress::Articles::Post' + end + + # Module Routes + namespace :modules do + resources :connections, class_name: 'Phcpress::Modules::Connection' + resources :categories, class_name: 'Phcpress::Modules::Category' + end + +end