score:2

var ReportViewActions = {

   getReports: function(requestObject) {

        $.ajax({
            url: '/reports',
            type: 'GET',
            contentType: 'application/json; charset=utf-8',
            dataType: 'json',
            data: requestObject
        }).then(function(newReports) {
            AppDispatcher.handleViewAction({
                type: ReportActionTypes.RECEIVE_REPORTS,
                reports: newReports
            });
        });
   }
}

Related Query

More Query from same tag