app/controllers/phcpresspro/api/v1/posts_controller.rb in phcpresspro-21.0.0 vs app/controllers/phcpresspro/api/v1/posts_controller.rb in phcpresspro-21.1.0
- old
+ new
@@ -6,15 +6,15 @@
# Only Responds to API Requests
respond_to :json
# Article Category API
def index
- @phcpresspro_frontend_article_index = Phcpressproindexapi.get_phcpresspro_index_api
+ @article_posts = Article::Post.order('psttitle ASC')
end
# Article Show
def show
- @phcpresspro_frontend_article_show = Article::Post.find(params[:id])
+ @article_post = Article::Post.find(params[:id])
end
end
end