Sha256: 6c9a876a03d0ef8a4e43791a2ad60aadcc27a59488e6cc3da776dbf19b7eaa10
Contents?: true
Size: 378 Bytes
Versions: 10
Compression:
Stored size: 378 Bytes
Contents
require_dependency "phcmemberspro/application_controller" module Phcmemberspro class Api::V1::ListingsController < ApplicationController # Only Responds to API Requests respond_to :json # Directory Listing API def index category = Directory::Category.find(params[:category_id]) @member_listings = category.listings.all end end end
Version data entries
10 entries across 10 versions & 1 rubygems