diff --git a/routers/api/v1/api.go b/routers/api/v1/api.go index 15fc57107..309a484ce 100755 --- a/routers/api/v1/api.go +++ b/routers/api/v1/api.go @@ -580,7 +580,7 @@ func RegisterRoutes(m *macaron.Macaron) { m.Get("/query_metrics_current_month", operationReq, repo_ext.QueryUserMetricsCurrentMonth) m.Get("/query_metrics_current_week", operationReq, repo_ext.QueryUserMetricsCurrentWeek) - m.Get("/query_metrics_current_year", repo_ext.QueryUserMetricsCurrentYear) + m.Get("/query_metrics_current_year", operationReq, repo_ext.QueryUserMetricsCurrentYear) m.Get("/query_metrics_last30_day", operationReq, repo_ext.QueryUserMetricsLast30Day) m.Get("/query_metrics_last_month", operationReq, repo_ext.QueryUserMetricsLastMonth) m.Get("/query_metrics_yesterday", operationReq, repo_ext.QueryUserMetricsYesterday)