Method: Notee::PostsController#index

Defined in:
app/controllers/notee/posts_controller.rb

#indexObject

GET /posts



9
10
11
12
# File 'app/controllers/notee/posts_controller.rb', line 9

def index
  @posts = Post.where(is_deleted: false).order(updated_at: :desc)
  render json: { status: 'success', posts: @posts }
end