require 'will_paginate/array'
class API::V1::ResponsesController < API::V1::BaseController

  def index
    find_form
    unless performed?
      responses = @form.responses
      responses = add_date_filter(responses)
      paginate json: responses, each_serializer: API::V1::ResponseSerializer
    end
  end
end
