Sha256: 8029732b142b27bf1a960cf75265265dd6e7693cdf55eb3ad2fd4653eaca6177

Contents?: true

Size: 876 Bytes

Versions: 8

Compression:

Stored size: 876 Bytes

Contents

Phcmembers::Engine.routes.draw do

  # Mount Accounts Engine
  mount Phcaccounts::Engine, :at => '/'

  # 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

  # Application Dashboard
  get 'dashboard', to: 'member/dashboards#index'

  # Application Members Management
  namespace :member do
    # 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

  # Application Directory Management
  namespace :directory do
    # Members Main Index
    resources :categories, class_name: 'Phcmembers::Directory::Category'
  end

end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
phcmembers-64.1.0 config/routes.rb
phcmembers-64.0.0 config/routes.rb
phcmembers-63.0.0 config/routes.rb
phcmembers-62.1.0 config/routes.rb
phcmembers-62.0.0 config/routes.rb
phcmembers-61.5.0 config/routes.rb
phcmembers-61.4.0 config/routes.rb
phcmembers-61.3.0 config/routes.rb