Sha256: f5fa0089ce3b03002a31f89282ea68f765028561e9bcd4f3fe46340668ffce15
Contents?: true
Size: 353 Bytes
Versions: 88
Compression:
Stored size: 353 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
88 entries across 88 versions & 1 rubygems