Sha256: 391551ae6959a4c54bc9280a1afa12c3a52d400a1094dbf780f360504cec1a3c
Contents?: true
Size: 608 Bytes
Versions: 44
Compression:
Stored size: 608 Bytes
Contents
require_dependency "phcpress/application_controller" require 'httparty' module Phcpress class Frontend::ArticlesController < ApplicationController # Security & Filters layout '/layouts/phcpress/frontend.html.erb' # Article Index def index @phcpress_frontend_article_list = HTTParty.get("https://#{ENV["PHC_PRESS_API_DOMAIN"]}/#{ENV["PHC_PRESS_API_FOLDER"]}/api/v1/posts.json") end # Article Show def show @phcpress_frontend_article_post = HTTParty.get("https://#{ENV["PHC_PRESS_API_DOMAIN"]}/#{ENV["PHC_PRESS_API_FOLDER"]}/api/v1/posts.json") end end end
Version data entries
44 entries across 44 versions & 1 rubygems