Sha256: 924ccfca0b74d6c30d7b07e1289b29de4d91c14f9f8039e525036deb373b117d

Contents?: true

Size: 775 Bytes

Versions: 21

Compression:

Stored size: 775 Bytes

Contents

PhcdevworksMembers::Engine.routes.draw do

  # Dashboard Routes
  get 'dashboard', to: 'info/dashboard#index'

  # Member Routes
  namespace :member do
    resources :profiles, class_name: 'Member::Profile' do
      resources :listings, class_name: 'Member::Listing'
      resources :addresses, class_name: 'Member::Address'
    end
  end

  # Directory Routes
  namespace :directory do
    resources :categories, class_name: 'Directory::Category'
  end

  # 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

  # Mount Routes
  mount PhcdevworksAccounts::Engine, :at => '/'

end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
phcdevworks_members-6.8.0 config/routes.rb
phcdevworks_members-6.7.1 config/routes.rb
phcdevworks_members-6.7.0 config/routes.rb
phcdevworks_members-6.6.0 config/routes.rb
phcdevworks_members-6.5.0 config/routes.rb
phcdevworks_members-6.4.0 config/routes.rb
phcdevworks_members-6.3.0 config/routes.rb
phcdevworks_members-6.2.0 config/routes.rb
phcdevworks_members-6.1.0 config/routes.rb
phcdevworks_members-6.0.0 config/routes.rb
phcdevworks_members-5.1.1 config/routes.rb
phcdevworks_members-5.1.0 config/routes.rb
phcdevworks_members-5.0.3 config/routes.rb
phcdevworks_members-5.0.2 config/routes.rb
phcdevworks_members-5.0.0 config/routes.rb
phcdevworks_members-4.1.0 config/routes.rb
phcdevworks_members-4.0.1 config/routes.rb
phcdevworks_members-4.0.0 config/routes.rb
phcdevworks_members-3.0.0 config/routes.rb
phcdevworks_members-2.3.1 config/routes.rb