Sha256: 12b7c45415db9ee61066fd8a090d5598e8d714005287139c20b971a8f54b10b9

Contents?: true

Size: 850 Bytes

Versions: 42

Compression:

Stored size: 850 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

42 entries across 42 versions & 1 rubygems

Version Path
phcmemberspro-33.0.0 config/routes.rb
phcmemberspro-32.0.0 config/routes.rb
phcmemberspro-31.0.0 config/routes.rb
phcmemberspro-30.0.0 config/routes.rb
phcmemberspro-29.2.0 config/routes.rb
phcmemberspro-29.1.0 config/routes.rb
phcmemberspro-29.0.0 config/routes.rb
phcmemberspro-28.0.0 config/routes.rb
phcmemberspro-27.2.0 config/routes.rb
phcmemberspro-27.1.0 config/routes.rb
phcmemberspro-27.0.0 config/routes.rb
phcmemberspro-26.0.0 config/routes.rb
phcmemberspro-25.1.0 config/routes.rb
phcmemberspro-25.0.0 config/routes.rb
phcmemberspro-24.2.0 config/routes.rb
phcmemberspro-24.1.0 config/routes.rb
phcmemberspro-24.0.0 config/routes.rb
phcmemberspro-23.1.0 config/routes.rb
phcmemberspro-23.0.0 config/routes.rb
phcmemberspro-22.2.0 config/routes.rb