Sha256: 303f6ff3d59eb60adce511a3fc0f3a8fb13cc277d0c6c3501b7a5b748fc0608d

Contents?: true

Size: 388 Bytes

Versions: 16

Compression:

Stored size: 388 Bytes

Contents

require_dependency "phcmemberspro/application_controller"

module Phcmemberspro
	class Api::ListapiController < ApplicationController

		# Only Responds to API Requests
		respond_to :json

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

	end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
phcmemberspro-8.5.0 app/controllers/phcmemberspro/api/listapi_controller.rb
phcmemberspro-8.0.1 app/controllers/phcmemberspro/api/listapi_controller.rb
phcmemberspro-8.0.0 app/controllers/phcmemberspro/api/listapi_controller.rb
phcmemberspro-7.9.1 app/controllers/phcmemberspro/api/listapi_controller.rb
phcmemberspro-7.9.0 app/controllers/phcmemberspro/api/listapi_controller.rb
phcmemberspro-7.8.14 app/controllers/phcmemberspro/api/listapi_controller.rb
phcmemberspro-7.8.12 app/controllers/phcmemberspro/api/listapi_controller.rb
phcmemberspro-7.8.11 app/controllers/phcmemberspro/api/listapi_controller.rb
phcmemberspro-7.8.10 app/controllers/phcmemberspro/api/listapi_controller.rb
phcmemberspro-7.8.8 app/controllers/phcmemberspro/api/listapi_controller.rb
phcmemberspro-7.8.7 app/controllers/phcmemberspro/api/listapi_controller.rb
phcmemberspro-7.8.6 app/controllers/phcmemberspro/api/listapi_controller.rb
phcmemberspro-7.8.5 app/controllers/phcmemberspro/api/listapi_controller.rb
phcmemberspro-7.8.2 app/controllers/phcmemberspro/api/listapi_controller.rb
phcmemberspro-7.8.1 app/controllers/phcmemberspro/api/listapi_controller.rb
phcmemberspro-7.8.0 app/controllers/phcmemberspro/api/listapi_controller.rb