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