Sha256: 7d1a0307a5923e7066263b9fcb8c40494c06ad3b463459ea178266a184047129

Contents?: true

Size: 858 Bytes

Versions: 35

Compression:

Stored size: 858 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 => '/accounts'

end

Version data entries

35 entries across 35 versions & 1 rubygems

Version Path
phcmemberspro-58.0.0 config/routes.rb
phcmemberspro-57.0.0 config/routes.rb
phcmemberspro-56.0.0 config/routes.rb
phcmemberspro-55.0.0 config/routes.rb
phcmemberspro-54.0.0 config/routes.rb
phcmemberspro-53.0.0 config/routes.rb
phcmemberspro-52.1.0 config/routes.rb
phcmemberspro-52.0.0 config/routes.rb
phcmemberspro-50.0.0 config/routes.rb
phcmemberspro-49.0.0 config/routes.rb
phcmemberspro-48.0.0 config/routes.rb
phcmemberspro-47.1.0 config/routes.rb
phcmemberspro-46.0.0 config/routes.rb
phcmemberspro-45.0.1 config/routes.rb
phcmemberspro-45.0.0 config/routes.rb
phcmemberspro-44.1.0 config/routes.rb
phcmemberspro-44.0.0 config/routes.rb
phcmemberspro-43.0.0 config/routes.rb
phcmemberspro-42.1.0 config/routes.rb
phcmemberspro-42.0.0 config/routes.rb