update analytics api controller so all methods support date filtering