Sha256: 96a060298e770dd183bc0a1f08b3641d2c3f5d2418a284e92c2b3ce9ac0d6f3b

Contents?: true

Size: 315 Bytes

Versions: 5

Compression:

Stored size: 315 Bytes

Contents

require_dependency "phcpress/application_controller"

module Phcpress
  class Api::V1::PostsController < ApplicationController
  
    # Only Responds to API Requests
    respond_to :json
    
    # Article Category API
    def index
      @articles_posts = Articles::Post.order('psttitle ASC')
    end
  
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
phcpress-6.6.1 app/controllers/phcpress/api/v1/posts_controller.rb
phcpress-6.6.0 app/controllers/phcpress/api/v1/posts_controller.rb
phcpress-6.5.1 app/controllers/phcpress/api/v1/posts_controller.rb
phcpress-6.5.0 app/controllers/phcpress/api/v1/posts_controller.rb
phcpress-6.4.5 app/controllers/phcpress/api/v1/posts_controller.rb