def index
      offset = params[:offset] || 0
      limit = params[:limit] || 20
      @runs = Run.order('id DESC').offset(offset).limit(limit)
      render json: @runs
    end
def index
      offset = params[:offset] || 0
      limit = params[:limit] || 20
      @runs = Run.order('id DESC').offset(offset).limit(limit)
      render json: @runs
    end
skip_before_action :verify_authenticity_token