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-23.0.0 app/controllers/phcmemberspro/api/v1/listings_controller.rb
phcmemberspro-22.2.0 app/controllers/phcmemberspro/api/v1/listings_controller.rb
phcmemberspro-22.1.0 app/controllers/phcmemberspro/api/v1/listings_controller.rb
phcmemberspro-22.0.0 app/controllers/phcmemberspro/api/v1/listings_controller.rb
phcmemberspro-21.3.0 app/controllers/phcmemberspro/api/v1/listings_controller.rb
phcmemberspro-21.2.0 app/controllers/phcmemberspro/api/v1/listings_controller.rb
phcmemberspro-21.0.0 app/controllers/phcmemberspro/api/v1/listings_controller.rb
phcmemberspro-20.5.2 app/controllers/phcmemberspro/api/v1/listings_controller.rb
phcmemberspro-20.5.1 app/controllers/phcmemberspro/api/v1/listings_controller.rb
phcmemberspro-20.5.0 app/controllers/phcmemberspro/api/v1/listings_controller.rb
phcmemberspro-20.4.0 app/controllers/phcmemberspro/api/v1/listings_controller.rb
phcmemberspro-20.3.1 app/controllers/phcmemberspro/api/v1/listings_controller.rb
phcmemberspro-20.3.0 app/controllers/phcmemberspro/api/v1/listings_controller.rb
phcmemberspro-20.2.2 app/controllers/phcmemberspro/api/v1/listings_controller.rb
phcmemberspro-20.2.1 app/controllers/phcmemberspro/api/v1/listings_controller.rb
phcmemberspro-20.2.0 app/controllers/phcmemberspro/api/v1/listings_controller.rb
phcmemberspro-20.1.0 app/controllers/phcmemberspro/api/v1/listings_controller.rb
phcmemberspro-20.0.4 app/controllers/phcmemberspro/api/v1/listings_controller.rb
phcmemberspro-20.0.3 app/controllers/phcmemberspro/api/v1/listings_controller.rb
phcmemberspro-20.0.2 app/controllers/phcmemberspro/api/v1/listings_controller.rb