Sha256: 77d0eb4bf0c77a37163100b68f52bf0f8b0a02ef50acb61893224bedea94cf87

Contents?: true

Size: 961 Bytes

Versions: 4

Compression:

Stored size: 961 Bytes

Contents

Phcmemberspro::Engine.routes.draw do

	# Dashboard (Engine Root)
	root 'dashboard/mains/index', :path => "dashboard"

	# Application API
	namespace :api do

		# Routes for API
		resources :catsapi, defaults: {format: 'json'} do
			resources :listapi
		end

	end

	# Application Client Backend

	# Members Section
	namespace :member do

		# Members Main Index
		root 'profiles#index'

		# 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

	# Directory Section
	namespace :directory do

		# Members Main Index
		root 'categories#index'

		resources :categories, class_name: 'Phcmemberspro::Directory::Category'
		resources :categorylistings, class_name: 'Phcmemberspro::Directory::Categorylisting'
	end
	
	# Mount Account Routes
	mount Phcaccountspro::Engine, :at => '/'

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
phcmemberspro-9.0.3 config/routes.rb
phcmemberspro-9.0.2 config/routes.rb
phcmemberspro-9.0.1 config/routes.rb
phcmemberspro-9.0.0 config/routes.rb