Sha256: f097b004aa97fb3d41d41dc4c65503683b9a974404fbab8b7d20cb2184c9d885
Contents?: true
Size: 406 Bytes
Versions: 4
Compression:
Stored size: 406 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.order('psttitle ASC') end # Article Show def show @article_post = Article::Post.find(params[:id]) end end end
Version data entries
4 entries across 4 versions & 1 rubygems