Sha256: b08e4ad82b854004fb2e8b81a711155fa6d0e703074807a1ace0efb3aac9c8a8

Contents?: true

Size: 527 Bytes

Versions: 3

Compression:

Stored size: 527 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

3 entries across 3 versions & 1 rubygems

Version Path
phcmembers-12.1.1 app/controllers/phcmembers/api/directories_controller.rb
phcmembers-12.1.0 app/controllers/phcmembers/api/directories_controller.rb
phcmembers-12.0.1 app/controllers/phcmembers/api/directories_controller.rb