Sha256: 0975b85061002a134638caf014cc3afb3b6d8019d0f147ba1319fdc2a842ddbb

Contents?: true

Size: 713 Bytes

Versions: 4

Compression:

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

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
phcmembers-68.0.3 config/routes.rb
phcmembers-68.0.2 config/routes.rb
phcmembers-68.0.1 config/routes.rb
phcmembers-68.0.0 config/routes.rb