config/routes.rb in phcmemberspro-8.6.3 vs config/routes.rb in phcmemberspro-9.0.0

- old
+ new

@@ -1,9 +1,9 @@ Phcmemberspro::Engine.routes.draw do # Dashboard (Engine Root) - get 'dashboard/mains/index', :path => "dashboard" + root 'dashboard/mains/index', :path => "dashboard" # Application API namespace :api do # Routes for API @@ -13,36 +13,33 @@ end # Application Client Backend - namespace :members do + # Members Section + namespace :member do # Members Main Index - root 'mains#index' + root 'profiles#index' # Member Routes - resources :mains do - - # Member Routes - resources :businesses - resources :contacts - - # Auto Complete Routes - get :autocomplete_members_contact_mccompanyname, :on => :collection - + resources :profiles, class_name: 'Phcmemberspro::Member::Profile' do + resources :listings, class_name: 'Phcmemberspro::Member::Listing' + resources :addresses, class_name: 'Phcmemberspro::Member::Address' end end + # Directory Section namespace :directory do # Members Main Index root 'categories#index' - resources :categories do - resources :listings - end - + resources :categories, class_name: 'Phcmemberspro::Directory::Category' + resources :categorylistings, class_name: 'Phcmemberspro::Directory::Categorylisting' end + + # Mount Account Routes + mount Phcaccountspro::Engine, :at => '/' end