Sha256: e325c96edab31a2e27284690a5794d8bd0eb4b2b706c2e3533ed9d373f845a68

Contents?: true

Size: 294 Bytes

Versions: 12

Compression:

Stored size: 294 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

12 entries across 12 versions & 1 rubygems

Version Path
phcpress-6.4.4 app/controllers/phcpress/api/v1/posts_controller.rb
phcpress-6.4.3 app/controllers/phcpress/api/v1/posts_controller.rb
phcpress-6.4.2 app/controllers/phcpress/api/v1/posts_controller.rb
phcpress-6.4.1 app/controllers/phcpress/api/v1/posts_controller.rb
phcpress-6.4.0 app/controllers/phcpress/api/v1/posts_controller.rb
phcpress-6.3.0 app/controllers/phcpress/api/v1/posts_controller.rb
phcpress-6.2.8 app/controllers/phcpress/api/v1/posts_controller.rb
phcpress-6.2.7 app/controllers/phcpress/api/v1/posts_controller.rb
phcpress-6.2.6 app/controllers/phcpress/api/v1/posts_controller.rb
phcpress-6.2.5 app/controllers/phcpress/api/v1/posts_controller.rb
phcpress-6.2.4 app/controllers/phcpress/api/v1/posts_controller.rb
phcpress-6.2.3 app/controllers/phcpress/api/v1/posts_controller.rb