Update api controller and stats resource to pass date range