krasnoukhov/octodmin

View on GitHub
app/controllers/posts/index.rb

Summary

Maintainability
A
0 mins
Test Coverage
module Octodmin::Controllers::Posts
  class Index
    include Octodmin::Action
    expose :posts

    def call(params)
      self.format = :json

      site = Octodmin::Site.new
      @posts = site.posts
    end
  end
end