Class: Phcpresspro::Frontend::ArticleController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- Phcpresspro::Frontend::ArticleController
- Defined in:
- app/controllers/phcpresspro/frontend/article_controller.rb
Instance Method Summary collapse
-
#index ⇒ Object
Article Index.
-
#show ⇒ Object
Article Show.
Methods inherited from ApplicationController
Instance Method Details
#index ⇒ Object
Article Index
11 12 13 |
# File 'app/controllers/phcpresspro/frontend/article_controller.rb', line 11 def index @phcpresspro_frontend_article_list = HTTParty.get("https://#{ENV["PHC_PRESSPRO_API_DOMAIN"]}/#{ENV["PHC_PRESSPRO_API_FOLDER"]}/api/v1/posts.json") end |
#show ⇒ Object
Article Show
16 17 18 |
# File 'app/controllers/phcpresspro/frontend/article_controller.rb', line 16 def show @phcpresspro_frontend_article_post = HTTParty.get("https://#{ENV["PHC_PRESSPRO_API_DOMAIN"]}/#{ENV["PHC_PRESSPRO_API_FOLDER"]}/api/v1/posts.json") end |