Sha256: 0ba32b20dd7b98e767340357a27e8a337be7bee499ef1af701a1fc64ea0556eb

Contents?: true

Size: 312 Bytes

Versions: 7

Compression:

Stored size: 312 Bytes

Contents

require_dependency "phcpresspro/application_controller"

module Phcpresspro
  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

7 entries across 7 versions & 1 rubygems

Version Path
phcpresspro-10.0.0 app/controllers/phcpresspro/api/v1/posts_controller.rb
phcpresspro-9.1.3 app/controllers/phcpresspro/api/v1/posts_controller.rb
phcpresspro-9.1.2 app/controllers/phcpresspro/api/v1/posts_controller.rb
phcpresspro-9.1.1 app/controllers/phcpresspro/api/v1/posts_controller.rb
phcpresspro-9.1.0 app/controllers/phcpresspro/api/v1/posts_controller.rb
phcpresspro-9.0.0 app/controllers/phcpresspro/api/v1/posts_controller.rb
phcpresspro-8.0.6 app/controllers/phcpresspro/api/v1/posts_controller.rb