Phcmemberspro::Engine.routes.draw do # Dashboard (Engine Root) root 'dashboard/mains#index' # Application API namespace :api do # Routes for API resources :catsapi, defaults: {format: 'json'} do resources :listapi end end # Application Client Backend namespace :members do # Members Main Index root 'mains#index' # Member Routes resources :mains do # Member Routes resources :businesses resources :contacts # Auto Complete Routes get :autocomplete_members_contact_mccompanyname, :on => :collection end end namespace :directory do # Directory Main Index root 'categories#index' # Directory Routes resources :categories do resources :catlists end end end