Sha256: 9a797230a44955a2f4689190b996bbd79a81bb59c1a31db0b5047557e5b7231b
Contents?: true
Size: 371 Bytes
Versions: 46
Compression:
Stored size: 371 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
46 entries across 46 versions & 1 rubygems