Sha256: f5fa0089ce3b03002a31f89282ea68f765028561e9bcd4f3fe46340668ffce15

Contents?: true

Size: 353 Bytes

Versions: 88

Compression:

Stored size: 353 Bytes

Contents

require_dependency "phcmemberspro/application_controller"

module Phcmemberspro
	class Api::V1::ListingsController < ApplicationController

		# Only Responds to API Requests
		respond_to :json

		# Directory Listing API
		def index
			category = Directory::Category.find(params[:category_id])
			@member_listings = category.listings.all
		end

	end
end

Version data entries

88 entries across 88 versions & 1 rubygems

Version Path
phcmemberspro-14.0.3 app/controllers/phcmemberspro/api/v1/listings_controller.rb
phcmemberspro-14.0.2 app/controllers/phcmemberspro/api/v1/listings_controller.rb
phcmemberspro-14.0.1 app/controllers/phcmemberspro/api/v1/listings_controller.rb
phcmemberspro-14.0.0 app/controllers/phcmemberspro/api/v1/listings_controller.rb
phcmemberspro-13.6.6 app/controllers/phcmemberspro/api/v1/listings_controller.rb
phcmemberspro-13.6.5 app/controllers/phcmemberspro/api/v1/listings_controller.rb
phcmemberspro-13.6.4 app/controllers/phcmemberspro/api/v1/listings_controller.rb
phcmemberspro-13.6.3 app/controllers/phcmemberspro/api/v1/listings_controller.rb
phcmemberspro-13.6.2 app/controllers/phcmemberspro/api/v1/listings_controller.rb
phcmemberspro-13.6.1 app/controllers/phcmemberspro/api/v1/listings_controller.rb
phcmemberspro-13.6.0 app/controllers/phcmemberspro/api/v1/listings_controller.rb
phcmemberspro-13.5.1 app/controllers/phcmemberspro/api/v1/listings_controller.rb
phcmemberspro-13.5.0 app/controllers/phcmemberspro/api/v1/listings_controller.rb
phcmemberspro-13.4.2 app/controllers/phcmemberspro/api/v1/listings_controller.rb
phcmemberspro-13.4.1 app/controllers/phcmemberspro/api/v1/listings_controller.rb
phcmemberspro-13.4.0 app/controllers/phcmemberspro/api/v1/listings_controller.rb
phcmemberspro-13.2.1 app/controllers/phcmemberspro/api/v1/listings_controller.rb
phcmemberspro-13.2.0 app/controllers/phcmemberspro/api/v1/listings_controller.rb
phcmemberspro-13.1.1 app/controllers/phcmemberspro/api/v1/listings_controller.rb
phcmemberspro-13.1.0 app/controllers/phcmemberspro/api/v1/listings_controller.rb