(w http.ResponseWriter, r *http.Request)
| 15 | } |
| 16 | |
| 17 | func (api *API) GetAggregatedPageStatsPageviewsHandler(w http.ResponseWriter, r *http.Request) error { |
| 18 | params := GetRequestParams(r) |
| 19 | result, err := api.database.GetAggregatedPageStatsPageviews(params.SiteID, params.StartDate, params.EndDate) |
| 20 | if err != nil { |
| 21 | return err |
| 22 | } |
| 23 | return respond(w, http.StatusOK, envelope{Data: result}) |
| 24 | } |
nothing calls this directly
no test coverage detected