config/routes.rb in phcmemberspro-87.0.0 vs config/routes.rb in phcmemberspro-88.0.0

- old
+ new

@@ -1,34 +1,31 @@ Phcmemberspro::Engine.routes.draw do - # Mount Accounts Engine - mount Phcaccountspro::Engine, :at => '/' - - # Application API - namespace :api do + # API Routes + namespace :api, :path => "", :constraints => {:subdomain => "api"} do namespace :v1 do - # Routes for API resources :categories, defaults: {format: 'json'} do resources :listings, defaults: {format: 'json'} end end end - # Application Dashboard + # Dashboard Routes get 'dashboard', to: 'member/dashboards#index' - # Application Members Management + # Member Routes namespace :member do - # Member Routes resources :profiles, class_name: 'Phcmemberspro::Member::Profile' do resources :listings, class_name: 'Phcmemberspro::Member::Listing' resources :addresses, class_name: 'Phcmemberspro::Member::Address' end end - # Application Directory Management + # Directory Routes namespace :directory do - # Members Main Index resources :categories, class_name: 'Phcmemberspro::Directory::Category' end + + # PHCAccounts Routes + mount Phcaccountspro::Engine, :at => '/' end