config/routes.rb in phcpresspro-5.3.4 vs config/routes.rb in phcpresspro-5.4.0

- old
+ new

@@ -1,16 +1,14 @@ Phcpresspro::Engine.routes.draw do - namespace :api do - namespace :v1 do - resources :posts - end - end - namespace :api do - namespace :v1 do - resources :categories - end - 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: 'Phcpresspro::Articles::Post' end