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 @phcpresspro_frontend_article_index = Phcpressproindexapi.get_phcpresspro_index_api end # Article Show def show @phcpresspro_frontend_article_show = Article::Post.find(params[:id]) end end end