config/routes.rb in phcpresspro-6.7.7 vs config/routes.rb in phcpresspro-6.8.0
- old
+ new
@@ -1,27 +1,27 @@
Phcpresspro::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: 'Phcpresspro::Articles::Post'
- end
+ # Frontend
+ namespace :frontend do
+ resources :articles
+ end
- # Module Routes
- namespace :modules do
- resources :connections, class_name: 'Phcpresspro::Modules::Connection'
- resources :categories, class_name: 'Phcpresspro::Modules::Category'
- 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
+
+ # Module Routes
+ namespace :modules do
+ resources :connections, class_name: 'Phcpresspro::Modules::Connection'
+ resources :categories, class_name: 'Phcpresspro::Modules::Category'
+ end
end