Sha256: 48c6be65012f4b4dcc5791b9d9b1eda52dc2c18e9ffe6d8a8ea1d2fd1ccb9f95

Contents?: true

Size: 737 Bytes

Versions: 3

Compression:

Stored size: 737 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

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
phcdevworks_members-12.0.2 config/routes.rb
phcdevworks_members-12.0.1 config/routes.rb
phcdevworks_members-12.0.0 config/routes.rb