Sha256: 71b90f37e3739dcde5321e72c3a7f1abc7722ef1a832ad7d978716580a426fe4

Contents?: true

Size: 516 Bytes

Versions: 15

Compression:

Stored size: 516 Bytes

Contents

require_dependency "phcmembers/application_controller"

module Phcmembers
  class Api::DirectoriesController < ApplicationController
  
    # Directory Category API
    def index
      @directory_categories = Directory::Category.where(membership_id: membership_info.id).order('catname ASC')
    end
    
    # Directory Listing API
    def show
      category = Directory::Category.find(params[:category_id])
      @directory_listings = category.catlists.where(membership_id: membership_info.id)
    end
  
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
phcmembers-8.1.2 app/controllers/phcmembers/api/directories_controller.rb
phcmembers-8.1.1 app/controllers/phcmembers/api/directories_controller.rb
phcmembers-8.1.0 app/controllers/phcmembers/api/directories_controller.rb
phcmembers-8.0.3 app/controllers/phcmembers/api/directories_controller.rb
phcmembers-8.0.2 app/controllers/phcmembers/api/directories_controller.rb
phcmembers-8.0.1 app/controllers/phcmembers/api/directories_controller.rb
phcmembers-8.0.0 app/controllers/phcmembers/api/directories_controller.rb
phcmembers-7.0.3 app/controllers/phcmembers/api/directories_controller.rb
phcmembers-7.0.2 app/controllers/phcmembers/api/directories_controller.rb
phcmembers-7.0.1 app/controllers/phcmembers/api/directories_controller.rb
phcmembers-7.0.0 app/controllers/phcmembers/api/directories_controller.rb
phcmembers-6.7.5 app/controllers/phcmembers/api/directories_controller.rb
phcmembers-6.7.4 app/controllers/phcmembers/api/directories_controller.rb
phcmembers-6.7.3 app/controllers/phcmembers/api/directories_controller.rb
phcmembers-6.7.2 app/controllers/phcmembers/api/directories_controller.rb