Phcmemberspro::Engine.routes.draw do # Dashboard (Engine Root) root 'modules/dashboards#index' # Application API namespace :api do # Routes for API resources :catsapi, defaults: {format: 'json'} do resources :listapi end end # Application Client Backend # Members Section namespace :member do # Members Main Index root 'profiles#index' # 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 # Directory Section namespace :directory do # Members Main Index root 'categories#index' resources :categories, class_name: 'Phcmemberspro::Directory::Category' end # Mount Account Routes mount Phcaccountspro::Engine, :at => '/' end