diff --git a/internal/rest/handlers/statistics.go b/internal/rest/handlers/statistics.go index 3503145ab..239ec0444 100644 --- a/internal/rest/handlers/statistics.go +++ b/internal/rest/handlers/statistics.go @@ -23,10 +23,9 @@ func NewStatisticsHandler(router *router.RouterGroup[*core.RequestEvent], servic service: service, } - group := router.Group("/statistics") - group.GET("/", handler.get) + router.GET("/statistics", handler.get) - group.GET("/get", handler.get) // 兼容旧版 + router.GET("/statistics/get", handler.get) // 兼容旧版 } func (handler *StatisticsHandler) get(e *core.RequestEvent) error {