Sha256: 86f4fe685f8d109c9fa3ba235d2ec05c4bb6d3d7367267086a6a0cf5f8df0491

Contents?: true

Size: 814 Bytes

Versions: 7

Compression:

Stored size: 814 Bytes

Contents

Phcmembers::Engine.routes.draw do

  # API Routes
  namespace :api, :path => "", :constraints => {:subdomain => "api"} do
    namespace :v1 do
      resources :categories, defaults: {format: 'json'} do
        resources :listings, defaults: {format: 'json'}
      end
    end
  end

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

  # Member Routes
  namespace :member do
    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 Routes
  namespace :directory do
    resources :categories, class_name: 'Phcmembers::Directory::Category'
  end

  # PHCAccounts Routes
  mount Phcaccounts::Engine, :at => '/'

end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
phcmembers-67.5.0 config/routes.rb
phcmembers-67.4.0 config/routes.rb
phcmembers-67.3.0 config/routes.rb
phcmembers-67.1.0 config/routes.rb
phcmembers-67.0.0 config/routes.rb
phcmembers-66.0.0 config/routes.rb
phcmembers-65.0.0 config/routes.rb