Sha256: e561e3bf65b6e4a5c46f3791761683cf3d815d5bfc0c5f7b5996de020ec8c244

Contents?: true

Size: 305 Bytes

Versions: 2

Compression:

Stored size: 305 Bytes

Contents

require_dependency "phcpresspro/application_controller"

module Phcpresspro
  class Api::V1::PostsController < ApplicationController

		# Only Responds to JSON API Requests
		respond_to :json

		# Article Category API
		def index
			@articles_posts = Articles::Post.order('psttitle ASC')
		end

  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
phcpresspro-5.0.2 app/controllers/phcpresspro/api/v1/posts_controller.rb
phcpresspro-5.0.1 app/controllers/phcpresspro/api/v1/posts_controller.rb