Sha256: 19f68b3fc9cfde5f07bf40dc62767ad65debf5aca99b3edfe2990f3a2610a86d

Contents?: true

Size: 384 Bytes

Versions: 16

Compression:

Stored size: 384 Bytes

Contents

require_dependency "phcmembers/application_controller"

module Phcmembers
	class Api::ListapiController < ApplicationController

		# Only Responds to API Requests
		respond_to :json

		# Directory Listing API
		def index
			category = Directory::Category.find(params[:category_id])
			@directory_catlists = category.catlists.scoped_to(current_account)
		end

	end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
phcmembers-2.2.0 app/controllers/phcmembers/api/listapi_controller.rb
phcmembers-2.1.3 app/controllers/phcmembers/api/listapi_controller.rb
phcmembers-2.1.2 app/controllers/phcmembers/api/listapi_controller.rb
phcmembers-2.1.1 app/controllers/phcmembers/api/listapi_controller.rb
phcmembers-2.1.0 app/controllers/phcmembers/api/listapi_controller.rb
phcmembers-2.0.0 app/controllers/phcmembers/api/listapi_controller.rb
phcmembers-1.9.9 app/controllers/phcmembers/api/listapi_controller.rb
phcmembers-1.9.5 app/controllers/phcmembers/api/listapi_controller.rb
phcmembers-1.9.0 app/controllers/phcmembers/api/listapi_controller.rb
phcmembers-1.8.1 app/controllers/phcmembers/api/listapi_controller.rb
phcmembers-1.8.0 app/controllers/phcmembers/api/listapi_controller.rb
phcmembers-1.7.8 app/controllers/phcmembers/api/listapi_controller.rb
phcmembers-1.7.6 app/controllers/phcmembers/api/listapi_controller.rb
phcmembers-1.7.5 app/controllers/phcmembers/api/listapi_controller.rb
phcmembers-1.7.0 app/controllers/phcmembers/api/listapi_controller.rb
phcmembers-1.6.0 app/controllers/phcmembers/api/listapi_controller.rb