Sha256: 9a797230a44955a2f4689190b996bbd79a81bb59c1a31db0b5047557e5b7231b

Contents?: true

Size: 371 Bytes

Versions: 46

Compression:

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

46 entries across 46 versions & 1 rubygems

Version Path
phcmemberspro-20.0.1 app/controllers/phcmemberspro/api/v1/listings_controller.rb
phcmemberspro-20.0.0 app/controllers/phcmemberspro/api/v1/listings_controller.rb
phcmemberspro-19.0.1 app/controllers/phcmemberspro/api/v1/listings_controller.rb
phcmemberspro-19.0.0 app/controllers/phcmemberspro/api/v1/listings_controller.rb
phcmemberspro-18.0.1 app/controllers/phcmemberspro/api/v1/listings_controller.rb
phcmemberspro-18.0.0 app/controllers/phcmemberspro/api/v1/listings_controller.rb