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-35.0.0 app/controllers/phcmemberspro/api/v1/listings_controller.rb
phcmemberspro-34.0.0 app/controllers/phcmemberspro/api/v1/listings_controller.rb
phcmemberspro-33.0.0 app/controllers/phcmemberspro/api/v1/listings_controller.rb
phcmemberspro-32.0.0 app/controllers/phcmemberspro/api/v1/listings_controller.rb
phcmemberspro-31.0.0 app/controllers/phcmemberspro/api/v1/listings_controller.rb
phcmemberspro-30.0.0 app/controllers/phcmemberspro/api/v1/listings_controller.rb
phcmemberspro-29.2.0 app/controllers/phcmemberspro/api/v1/listings_controller.rb
phcmemberspro-29.1.0 app/controllers/phcmemberspro/api/v1/listings_controller.rb
phcmemberspro-29.0.0 app/controllers/phcmemberspro/api/v1/listings_controller.rb
phcmemberspro-28.0.0 app/controllers/phcmemberspro/api/v1/listings_controller.rb
phcmemberspro-27.2.0 app/controllers/phcmemberspro/api/v1/listings_controller.rb
phcmemberspro-27.1.0 app/controllers/phcmemberspro/api/v1/listings_controller.rb
phcmemberspro-27.0.0 app/controllers/phcmemberspro/api/v1/listings_controller.rb
phcmemberspro-26.0.0 app/controllers/phcmemberspro/api/v1/listings_controller.rb
phcmemberspro-25.1.0 app/controllers/phcmemberspro/api/v1/listings_controller.rb
phcmemberspro-25.0.0 app/controllers/phcmemberspro/api/v1/listings_controller.rb
phcmemberspro-24.2.0 app/controllers/phcmemberspro/api/v1/listings_controller.rb
phcmemberspro-24.1.0 app/controllers/phcmemberspro/api/v1/listings_controller.rb
phcmemberspro-24.0.0 app/controllers/phcmemberspro/api/v1/listings_controller.rb
phcmemberspro-23.1.0 app/controllers/phcmemberspro/api/v1/listings_controller.rb