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-50.0.0 app/controllers/phcpress/frontend/articles_controller.rb
phcpress-49.0.0 app/controllers/phcpress/frontend/articles_controller.rb
phcpress-48.0.0 app/controllers/phcpress/frontend/articles_controller.rb
phcpress-47.1.0 app/controllers/phcpress/frontend/articles_controller.rb
phcpress-47.0.0 app/controllers/phcpress/frontend/articles_controller.rb
phcpress-46.0.0 app/controllers/phcpress/frontend/articles_controller.rb
phcpress-45.0.0 app/controllers/phcpress/frontend/articles_controller.rb
phcpress-44.0.0 app/controllers/phcpress/frontend/articles_controller.rb
phcpress-43.0.0 app/controllers/phcpress/frontend/articles_controller.rb
phcpress-42.0.0 app/controllers/phcpress/frontend/articles_controller.rb
phcpress-41.0.0 app/controllers/phcpress/frontend/articles_controller.rb
phcpress-40.0.0 app/controllers/phcpress/frontend/articles_controller.rb
phcpress-39.0.0 app/controllers/phcpress/frontend/articles_controller.rb
phcpress-38.0.0 app/controllers/phcpress/frontend/articles_controller.rb
phcpress-37.0.0 app/controllers/phcpress/frontend/articles_controller.rb
phcpress-36.0.0 app/controllers/phcpress/frontend/articles_controller.rb
phcpress-35.0.0 app/controllers/phcpress/frontend/articles_controller.rb
phcpress-34.0.0 app/controllers/phcpress/frontend/articles_controller.rb
phcpress-33.0.0 app/controllers/phcpress/frontend/articles_controller.rb
phcpress-32.0.0 app/controllers/phcpress/frontend/articles_controller.rb