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

Version Path
phcpress-31.2.0 app/controllers/phcpress/frontend/articles_controller.rb
phcpress-31.1.0 app/controllers/phcpress/frontend/articles_controller.rb
phcpress-31.0.0 app/controllers/phcpress/frontend/articles_controller.rb
phcpress-30.0.0 app/controllers/phcpress/frontend/articles_controller.rb
phcpress-29.0.0 app/controllers/phcpress/frontend/articles_controller.rb
phcpress-28.0.0 app/controllers/phcpress/frontend/articles_controller.rb
phcpress-27.0.0 app/controllers/phcpress/frontend/articles_controller.rb
phcpress-26.0.1 app/controllers/phcpress/frontend/articles_controller.rb
phcpress-26.0.0 app/controllers/phcpress/frontend/articles_controller.rb
phcpress-25.1.0 app/controllers/phcpress/frontend/articles_controller.rb
phcpress-25.0.0 app/controllers/phcpress/frontend/articles_controller.rb
phcpress-24.0.0 app/controllers/phcpress/frontend/articles_controller.rb
phcpress-23.2.0 app/controllers/phcpress/frontend/articles_controller.rb
phcpress-23.1.0 app/controllers/phcpress/frontend/articles_controller.rb
phcpress-23.0.0 app/controllers/phcpress/frontend/articles_controller.rb
phcpress-22.0.1 app/controllers/phcpress/frontend/articles_controller.rb
phcpress-22.0.0 app/controllers/phcpress/frontend/articles_controller.rb
phcpress-21.0.0 app/controllers/phcpress/frontend/articles_controller.rb
phcpress-20.0.0 app/controllers/phcpress/frontend/articles_controller.rb
phcpress-19.0.1 app/controllers/phcpress/frontend/articles_controller.rb