Sha256: 01a7c02376631d1dde6217629cf65811c97d05c1b8ac6df5e256dfc0f7c9f170

Contents?: true

Size: 480 Bytes

Versions: 62

Compression:

Stored size: 480 Bytes

Contents

require_dependency "phcmembers/application_controller"

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

    # Only Responds to API
    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).order('listing_company_name ASC')
    end

  end
end

Version data entries

62 entries across 62 versions & 2 rubygems

Version Path
phcdevworks_members-6.7.1 app/controllers/phcdevworks_members/api/v1/listings_controller.rb
phcdevworks_members-6.7.0 app/controllers/phcdevworks_members/api/v1/listings_controller.rb
phcdevworks_members-6.6.0 app/controllers/phcdevworks_members/api/v1/listings_controller.rb
phcdevworks_members-6.5.0 app/controllers/phcdevworks_members/api/v1/listings_controller.rb
phcmembers-67.4.0 app/controllers/phcmembers/api/v1/listings_controller.rb
phcdevworks_members-6.4.0 app/controllers/phcdevworks_members/api/v1/listings_controller.rb
phcdevworks_members-6.3.0 app/controllers/phcdevworks_members/api/v1/listings_controller.rb
phcdevworks_members-6.2.0 app/controllers/phcdevworks_members/api/v1/listings_controller.rb
phcdevworks_members-6.1.0 app/controllers/phcdevworks_members/api/v1/listings_controller.rb
phcdevworks_members-6.0.0 app/controllers/phcdevworks_members/api/v1/listings_controller.rb
phcmembers-67.3.0 app/controllers/phcmembers/api/v1/listings_controller.rb
phcdevworks_members-5.1.1 app/controllers/phcdevworks_members/api/v1/listings_controller.rb
phcdevworks_members-5.1.0 app/controllers/phcdevworks_members/api/v1/listings_controller.rb
phcdevworks_members-5.0.3 app/controllers/phcdevworks_members/api/v1/listings_controller.rb
phcdevworks_members-5.0.2 app/controllers/phcdevworks_members/api/v1/listings_controller.rb
phcdevworks_members-5.0.0 app/controllers/phcdevworks_members/api/v1/listings_controller.rb
phcdevworks_members-4.1.0 app/controllers/phcdevworks_members/api/v1/listings_controller.rb
phcdevworks_members-4.0.1 app/controllers/phcdevworks_members/api/v1/listings_controller.rb
phcdevworks_members-4.0.0 app/controllers/phcdevworks_members/api/v1/listings_controller.rb
phcdevworks_members-3.0.0 app/controllers/phcdevworks_members/api/v1/listings_controller.rb