Sha256: ad05b49ca2ad3909682dd1e19972d8e3904fa2c2c94a3173a67083a7ca772847

Contents?: true

Size: 894 Bytes

Versions: 9

Compression:

Stored size: 894 Bytes

Contents

Phcmemberspro::Engine.routes.draw do

  # Mount Accounts Engine
  mount Phcaccountspro::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: 'Phcmemberspro::Member::Profile' do
      resources :listings, class_name: 'Phcmemberspro::Member::Listing'
      resources :addresses, class_name: 'Phcmemberspro::Member::Address'
    end
  end

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

end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
phcmemberspro-87.0.0 config/routes.rb
phcmemberspro-86.0.0 config/routes.rb
phcmemberspro-85.0.0 config/routes.rb
phcmemberspro-84.1.0 config/routes.rb
phcmemberspro-84.0.0 config/routes.rb
phcmemberspro-83.0.0 config/routes.rb
phcmemberspro-82.4.0 config/routes.rb
phcmemberspro-82.3.1 config/routes.rb
phcmemberspro-82.3.0 config/routes.rb