Sha256: bcc3986fef75181163dd60102179a58721443bdaaed213d750c6e8dc54102518

Contents?: true

Size: 509 Bytes

Versions: 72

Compression:

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

72 entries across 72 versions & 1 rubygems

Version Path
phcmembers-27.0.0 app/controllers/phcmembers/api/directories_controller.rb
phcmembers-26.0.0 app/controllers/phcmembers/api/directories_controller.rb
phcmembers-25.0.0 app/controllers/phcmembers/api/directories_controller.rb
phcmembers-24.0.0 app/controllers/phcmembers/api/directories_controller.rb
phcmembers-23.0.0 app/controllers/phcmembers/api/directories_controller.rb
phcmembers-22.0.0 app/controllers/phcmembers/api/directories_controller.rb
phcmembers-21.1.0 app/controllers/phcmembers/api/directories_controller.rb
phcmembers-21.0.1 app/controllers/phcmembers/api/directories_controller.rb
phcmembers-21.0.0 app/controllers/phcmembers/api/directories_controller.rb
phcmembers-19.2.0 app/controllers/phcmembers/api/directories_controller.rb
phcmembers-19.1.0 app/controllers/phcmembers/api/directories_controller.rb
phcmembers-19.0.0 app/controllers/phcmembers/api/directories_controller.rb
phcmembers-18.0.0 app/controllers/phcmembers/api/directories_controller.rb
phcmembers-17.1.0 app/controllers/phcmembers/api/directories_controller.rb
phcmembers-17.0.1 app/controllers/phcmembers/api/directories_controller.rb
phcmembers-16.2.0 app/controllers/phcmembers/api/directories_controller.rb
phcmembers-16.1.0 app/controllers/phcmembers/api/directories_controller.rb
phcmembers-16.0.2 app/controllers/phcmembers/api/directories_controller.rb
phcmembers-16.0.1 app/controllers/phcmembers/api/directories_controller.rb
phcmembers-16.0.0 app/controllers/phcmembers/api/directories_controller.rb