Sha256: 6c9a876a03d0ef8a4e43791a2ad60aadcc27a59488e6cc3da776dbf19b7eaa10

Contents?: true

Size: 378 Bytes

Versions: 10

Compression:

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

10 entries across 10 versions & 1 rubygems

Version Path
phcmemberspro-17.1.4 app/controllers/phcmemberspro/api/v1/listings_controller.rb
phcmemberspro-17.1.3 app/controllers/phcmemberspro/api/v1/listings_controller.rb
phcmemberspro-17.1.2 app/controllers/phcmemberspro/api/v1/listings_controller.rb
phcmemberspro-17.1.1 app/controllers/phcmemberspro/api/v1/listings_controller.rb
phcmemberspro-17.1.0 app/controllers/phcmemberspro/api/v1/listings_controller.rb
phcmemberspro-17.0.3 app/controllers/phcmemberspro/api/v1/listings_controller.rb
phcmemberspro-17.0.2 app/controllers/phcmemberspro/api/v1/listings_controller.rb
phcmemberspro-17.0.1 app/controllers/phcmemberspro/api/v1/listings_controller.rb
phcmemberspro-17.0.0 app/controllers/phcmemberspro/api/v1/listings_controller.rb
phcmemberspro-16.0.2 app/controllers/phcmemberspro/api/v1/listings_controller.rb