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

Version Path
phcpresspro-69.1.0 app/controllers/phcpresspro/frontend/article_controller.rb
phcpresspro-69.0.0 app/controllers/phcpresspro/frontend/article_controller.rb
phcpresspro-68.0.0 app/controllers/phcpresspro/frontend/article_controller.rb
phcpresspro-67.0.0 app/controllers/phcpresspro/frontend/article_controller.rb
phcpresspro-66.0.0 app/controllers/phcpresspro/frontend/article_controller.rb
phcpresspro-65.0.0 app/controllers/phcpresspro/frontend/article_controller.rb
phcpresspro-64.0.0 app/controllers/phcpresspro/frontend/article_controller.rb
phcpresspro-63.0.0 app/controllers/phcpresspro/frontend/article_controller.rb
phcpresspro-62.0.0 app/controllers/phcpresspro/frontend/article_controller.rb
phcpresspro-61.0.0 app/controllers/phcpresspro/frontend/article_controller.rb
phcpresspro-60.0.0 app/controllers/phcpresspro/frontend/article_controller.rb
phcpresspro-59.0.0 app/controllers/phcpresspro/frontend/article_controller.rb
phcpresspro-58.0.0 app/controllers/phcpresspro/frontend/article_controller.rb
phcpresspro-57.0.0 app/controllers/phcpresspro/frontend/article_controller.rb
phcpresspro-56.0.0 app/controllers/phcpresspro/frontend/article_controller.rb
phcpresspro-55.0.0 app/controllers/phcpresspro/frontend/article_controller.rb
phcpresspro-54.0.0 app/controllers/phcpresspro/frontend/article_controller.rb
phcpresspro-53.0.0 app/controllers/phcpresspro/frontend/article_controller.rb
phcpresspro-52.0.0 app/controllers/phcpresspro/frontend/article_controller.rb
phcpresspro-51.0.0 app/controllers/phcpresspro/frontend/article_controller.rb