Sha256: 8db9a4f327b1937835a96fa7ebcd2668d9ff8710322c99a17656aeafc83cb2c7

Contents?: true

Size: 168 Bytes

Versions: 6

Compression:

Stored size: 168 Bytes

Contents

class Api::V1::PageController < Api::ApiController

  def index
    post_type = current_site.post_types.find_by_slug('page')
    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/page_controller.rb
camaleon_cms-1.0.9 app/controllers/api/v1/page_controller.rb
camaleon_cms-1.0.8 app/controllers/api/v1/page_controller.rb
camaleon_cms-1.0.7 app/controllers/api/v1/page_controller.rb
camaleon_cms-1.0.6 app/controllers/api/v1/page_controller.rb
camaleon_cms-1.0.5 app/controllers/api/v1/page_controller.rb