Sha256: 4b72ce4a96af6ce866f7c22b6d9d82ca3cf28a873bf5dbcd7992ee0eb5cdc63c
Contents?: true
Size: 634 Bytes
Versions: 64
Compression:
Stored size: 634 Bytes
Contents
require_dependency "phcpresspro/application_controller" require 'httparty' module Phcpresspro class Frontend::ArticleController < ApplicationController # Security & Filters layout '/layouts/phcpresspro/frontend.html.erb' # Article Index def index @phcpresspro_frontend_article_list = HTTParty.get("https://#{ENV["PHC_PRESSPRO_API_DOMAIN"]}/#{ENV["PHC_PRESSPRO_API_FOLDER"]}/api/v1/posts.json") end # Article Show def show @phcpresspro_frontend_article_post = HTTParty.get("https://#{ENV["PHC_PRESSPRO_API_DOMAIN"]}/#{ENV["PHC_PRESSPRO_API_FOLDER"]}/api/v1/posts.json") end end end
Version data entries
64 entries across 64 versions & 1 rubygems