Sha256: fa66327a20e2743e90803554e1ee583183ec0a62021ad1f041a5e4c8763677de

Contents?: true

Size: 168 Bytes

Versions: 6

Compression:

Stored size: 168 Bytes

Contents

class Api::V1::PostController < Api::ApiController

  def index
    post_type = current_site.post_types.find_by_slug('post')
    render json: post_type.posts
  end

end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
camaleon_cms-1.1.0 app/controllers/api/v1/post_controller.rb
camaleon_cms-1.0.9 app/controllers/api/v1/post_controller.rb
camaleon_cms-1.0.8 app/controllers/api/v1/post_controller.rb
camaleon_cms-1.0.7 app/controllers/api/v1/post_controller.rb
camaleon_cms-1.0.6 app/controllers/api/v1/post_controller.rb
camaleon_cms-1.0.5 app/controllers/api/v1/post_controller.rb