Sha256: 85e2481ee1497f028c6d8d05f0ac28909945c07db929076f2eed58ab062a1030

Contents?: true

Size: 483 Bytes

Versions: 5

Compression:

Stored size: 483 Bytes

Contents

require_dependency "phcmembers/application_controller"

module Phcmembers
  class Api::V1::ListingsController < ApplicationController

    # Only Responds to API Requests & Skips Member Profile Info
    skip_before_action :phcmembers_get_member_profile_info
    respond_to :json

    # Directory Listing API
    def index
      category = Directory::Category.find(params[:category_id])
      @member_listings = category.listings.where(org_id: current_user.org_id)
    end

  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
phcmembers-64.1.0 app/controllers/phcmembers/api/v1/listings_controller.rb
phcmembers-64.0.0 app/controllers/phcmembers/api/v1/listings_controller.rb
phcmembers-63.0.0 app/controllers/phcmembers/api/v1/listings_controller.rb
phcmembers-62.1.0 app/controllers/phcmembers/api/v1/listings_controller.rb
phcmembers-62.0.0 app/controllers/phcmembers/api/v1/listings_controller.rb