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