Sha256: 98e6895f2e2fee2d2c6f43a40cffd74122e427afa89279a2c334078516d463e0

Contents?: true

Size: 450 Bytes

Versions: 5

Compression:

Stored size: 450 Bytes

Contents

require_dependency "phcmembers/application_controller"

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

    # Only Responds to API Requests & Skips Member Profile Info
    skip_before_action :phcmembers_get_member_profile_info
    respond_to :json

    # Directory Category API
    def index
      @directory_categories = Directory::Category.where(org_id: current_user.org_id).order('catname ASC')
    end

  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
phcmembers-64.1.0 app/controllers/phcmembers/api/v1/categories_controller.rb
phcmembers-64.0.0 app/controllers/phcmembers/api/v1/categories_controller.rb
phcmembers-63.0.0 app/controllers/phcmembers/api/v1/categories_controller.rb
phcmembers-62.1.0 app/controllers/phcmembers/api/v1/categories_controller.rb
phcmembers-62.0.0 app/controllers/phcmembers/api/v1/categories_controller.rb