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-61.0.0 app/controllers/phcmembers/api/directories_controller.rb
phcmembers-60.0.0 app/controllers/phcmembers/api/directories_controller.rb
phcmembers-59.0.0 app/controllers/phcmembers/api/directories_controller.rb
phcmembers-57.1.0 app/controllers/phcmembers/api/directories_controller.rb
phcmembers-57.0.0 app/controllers/phcmembers/api/directories_controller.rb
phcmembers-56.0.0 app/controllers/phcmembers/api/directories_controller.rb
phcmembers-55.0.0 app/controllers/phcmembers/api/directories_controller.rb
phcmembers-54.0.0 app/controllers/phcmembers/api/directories_controller.rb
phcmembers-53.0.0 app/controllers/phcmembers/api/directories_controller.rb
phcmembers-52.0.0 app/controllers/phcmembers/api/directories_controller.rb
phcmembers-51.0.0 app/controllers/phcmembers/api/directories_controller.rb
phcmembers-50.0.0 app/controllers/phcmembers/api/directories_controller.rb
phcmembers-49.0.0 app/controllers/phcmembers/api/directories_controller.rb
phcmembers-46.0.0 app/controllers/phcmembers/api/directories_controller.rb
phcmembers-45.0.0 app/controllers/phcmembers/api/directories_controller.rb
phcmembers-44.0.0 app/controllers/phcmembers/api/directories_controller.rb
phcmembers-43.0.0 app/controllers/phcmembers/api/directories_controller.rb
phcmembers-42.0.0 app/controllers/phcmembers/api/directories_controller.rb
phcmembers-41.0.0 app/controllers/phcmembers/api/directories_controller.rb
phcmembers-40.0.0 app/controllers/phcmembers/api/directories_controller.rb