Sha256: 041b16e658ac3f03e8c0dd372747517f92524fafe37105732e6c3b3b67eea46a

Contents?: true

Size: 959 Bytes

Versions: 10

Compression:

Stored size: 959 Bytes

Contents

Phcmembers::Engine.routes.draw do

  # Dashboard (Engine Root)
  get 'modules/dashboards/index'
  root 'modules/dashboards#index'

  # Application API
  namespace :api do
    # Routes for API
    resources :catsapi, defaults: {format: 'json'} do
      resources :listapi
    end
  end

  # Members Section
  namespace :member do
    # Members Main Index
    root 'profiles#index'
    # Member Routes
    resources :profiles, class_name: 'Phcmembers::Member::Profile' do
      resources :listings, class_name: 'Phcmembers::Member::Listing'
      resources :addresses, class_name: 'Phcmembers::Member::Address'
    end
  end

  # Directory Section
  namespace :directory do
    # Members Main Index
    root 'categories#index'
    resources :categories, class_name: 'Phcmembers::Directory::Category'
    resources :categorylistings, class_name: 'Phcmembers::Directory::Categorylisting'
  end
  
  # Add Security Features
  mount Phcaccounts::Engine => "/"

end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
phcmembers-61.0.0 config/routes.rb
phcmembers-60.0.0 config/routes.rb
phcmembers-59.0.0 config/routes.rb
phcmembers-57.1.0 config/routes.rb
phcmembers-57.0.0 config/routes.rb
phcmembers-56.0.0 config/routes.rb
phcmembers-55.0.0 config/routes.rb
phcmembers-54.0.0 config/routes.rb
phcmembers-53.0.0 config/routes.rb
phcmembers-52.0.0 config/routes.rb