Sha256: d0957fbbce7ecf7d1526cbd4574b1987c4dad62b3a278c0c631ce5e6981fab3f
Contents?: true
Size: 468 Bytes
Versions: 47
Compression:
Stored size: 468 Bytes
Contents
require_dependency "phcpresspro/application_controller" module Phcpresspro class Api::V1::PostsController < ApplicationController # Only Responds to API Requests respond_to :json # Article Category API def index @article_posts = Article::Post.where(pststatus: 'published').order('created_at ASC') end # Article Show def show @article_post = Article::Post.where(pststatus: 'published').find(params[:id]) end end end
Version data entries
47 entries across 47 versions & 1 rubygems