Sha256: 7b4662e443853977b97b368e12e9245b7309703ebda93eb813b1eced5d701451

Contents?: true

Size: 486 Bytes

Versions: 31

Compression:

Stored size: 486 Bytes

Contents

require_dependency "phcmembers/application_controller"

module Phcmembers
	class Api::DirectoriesController < ApplicationController

		# Directory Category API
		def index
			@directory_categories = Directory::Category.where(membership_id: membership_info.id).order('catname ASC')
		end

		# Directory Listing API
		def show
			category = Directory::Category.find(params[:category_id])
			@directory_listings = category.catlists.where(membership_id: membership_info.id)
		end

	end
end

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
phcmembers-6.3.4 app/controllers/phcmembers/api/directories_controller.rb
phcmembers-6.3.3 app/controllers/phcmembers/api/directories_controller.rb
phcmembers-6.3.2 app/controllers/phcmembers/api/directories_controller.rb
phcmembers-6.3.1 app/controllers/phcmembers/api/directories_controller.rb
phcmembers-6.3.0 app/controllers/phcmembers/api/directories_controller.rb
phcmembers-6.2.0 app/controllers/phcmembers/api/directories_controller.rb
phcmembers-6.1.6 app/controllers/phcmembers/api/directories_controller.rb
phcmembers-6.1.5 app/controllers/phcmembers/api/directories_controller.rb
phcmembers-6.1.4 app/controllers/phcmembers/api/directories_controller.rb
phcmembers-6.1.3 app/controllers/phcmembers/api/directories_controller.rb
phcmembers-6.1.2 app/controllers/phcmembers/api/directories_controller.rb
phcmembers-6.1.1 app/controllers/phcmembers/api/directories_controller.rb
phcmembers-6.1.0 app/controllers/phcmembers/api/directories_controller.rb
phcmembers-6.0.1 app/controllers/phcmembers/api/directories_controller.rb
phcmembers-6.0.0 app/controllers/phcmembers/api/directories_controller.rb
phcmembers-5.0.3 app/controllers/phcmembers/api/directories_controller.rb
phcmembers-5.0.2 app/controllers/phcmembers/api/directories_controller.rb
phcmembers-5.0.1 app/controllers/phcmembers/api/directories_controller.rb
phcmembers-5.0.0 app/controllers/phcmembers/api/directories_controller.rb
phcmembers-4.2.10 app/controllers/phcmembers/api/directories_controller.rb