Sha256: 576e74af721e50db898b992cc70b52bc32d1a5ecd6c41f5106e6cfcf9b9642c2

Contents?: true

Size: 492 Bytes

Versions: 72

Compression:

Stored size: 492 Bytes

Contents

require_dependency "phcmemberspro/application_controller"

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

    # Only Responds to API Requests & Skips Member Profile Info
    skip_before_action :phcmemberspro_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

72 entries across 72 versions & 1 rubygems

Version Path
phcmemberspro-54.0.0 app/controllers/phcmemberspro/api/v1/listings_controller.rb
phcmemberspro-53.0.0 app/controllers/phcmemberspro/api/v1/listings_controller.rb
phcmemberspro-52.1.0 app/controllers/phcmemberspro/api/v1/listings_controller.rb
phcmemberspro-52.0.0 app/controllers/phcmemberspro/api/v1/listings_controller.rb
phcmemberspro-51.0.0 app/controllers/phcmemberspro/api/v1/listings_controller.rb
phcmemberspro-50.2.0 app/controllers/phcmemberspro/api/v1/listings_controller.rb
phcmemberspro-50.1.0 app/controllers/phcmemberspro/api/v1/listings_controller.rb
phcmemberspro-50.0.0 app/controllers/phcmemberspro/api/v1/listings_controller.rb
phcmemberspro-49.0.0 app/controllers/phcmemberspro/api/v1/listings_controller.rb
phcmemberspro-48.0.0 app/controllers/phcmemberspro/api/v1/listings_controller.rb
phcmemberspro-47.1.0 app/controllers/phcmemberspro/api/v1/listings_controller.rb
phcmemberspro-46.0.0 app/controllers/phcmemberspro/api/v1/listings_controller.rb
phcmemberspro-45.0.1 app/controllers/phcmemberspro/api/v1/listings_controller.rb
phcmemberspro-45.0.0 app/controllers/phcmemberspro/api/v1/listings_controller.rb
phcmemberspro-44.1.0 app/controllers/phcmemberspro/api/v1/listings_controller.rb
phcmemberspro-44.0.0 app/controllers/phcmemberspro/api/v1/listings_controller.rb
phcmemberspro-43.0.0 app/controllers/phcmemberspro/api/v1/listings_controller.rb
phcmemberspro-42.1.0 app/controllers/phcmemberspro/api/v1/listings_controller.rb
phcmemberspro-42.0.0 app/controllers/phcmemberspro/api/v1/listings_controller.rb
phcmemberspro-41.0.1 app/controllers/phcmemberspro/api/v1/listings_controller.rb