Class: Api::V1::ListingsController

Inherits:
ApplicationController
  • Object
show all
Defined in:
app/controllers/phcmemberspro/api/v1/listings_controller.rb

Instance Method Summary collapse

Instance Method Details

#indexObject

Directory Listing API



10
11
12
13
# File 'app/controllers/phcmemberspro/api/v1/listings_controller.rb', line 10

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