Sha256: 92b565f6eb4c9182edcd28511ad2ea69e9d5e25bbcdb2c2624711d4ba9f02cb0

Contents?: true

Size: 876 Bytes

Versions: 20

Compression:

Stored size: 876 Bytes

Contents

Phcmemberspro::Engine.routes.draw do

  # Application API
  namespace :api do
    namespace :v1 do
    
      # Routes for API
      resources :categories, defaults: {format: 'json'} do
        resources :listings, defaults: {format: 'json'}
      end
    
    end
  end

  # Dashboard (Engine Root)
  get '/modules/dashboards/index'
  
  # 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

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
phcmemberspro-16.0.1 config/routes.rb
phcmemberspro-16.0.0 config/routes.rb
phcmemberspro-15.1.1 config/routes.rb
phcmemberspro-15.1.0 config/routes.rb
phcmemberspro-15.0.3 config/routes.rb
phcmemberspro-15.0.2 config/routes.rb
phcmemberspro-15.0.1 config/routes.rb
phcmemberspro-15.0.0 config/routes.rb
phcmemberspro-14.7.7 config/routes.rb
phcmemberspro-14.7.5 config/routes.rb
phcmemberspro-14.7.4 config/routes.rb
phcmemberspro-14.7.3 config/routes.rb
phcmemberspro-14.7.2 config/routes.rb
phcmemberspro-14.7.1 config/routes.rb
phcmemberspro-14.7.0 config/routes.rb
phcmemberspro-14.6.3 config/routes.rb
phcmemberspro-14.6.2 config/routes.rb
phcmemberspro-14.6.1 config/routes.rb
phcmemberspro-14.6.0 config/routes.rb
phcmemberspro-14.5.0 config/routes.rb