Sha256: 02eef674d13f6a1d4be03184614a296bfea8fe0014a991fd1a3640ee401a4fdb

Contents?: true

Size: 799 Bytes

Versions: 1

Compression:

Stored size: 799 Bytes

Contents

Phcmemberspro::Engine.routes.draw do

	# Application API
	namespace :api do
		namespace :v1 do

			# Routes for API
			resources :categories, defaults: {format: 'json'}
			resources :listings, defaults: {format: 'json'}

		end
	end

	# Dashboard (Engine Root)
	get '/modules/dashboards/index'

	# Members Section
	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

	# Directory Section
	namespace :directory do

		# Members Main Index
		resources :categories, class_name: 'Phcmemberspro::Directory::Category'

	end

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

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
phcmemberspro-11.0.5 config/routes.rb