From f8954fe9ed88e79b91905f27ec05de9f7b2bf826 Mon Sep 17 00:00:00 2001 From: Fu Diwei Date: Mon, 2 Feb 2026 12:24:17 +0800 Subject: [PATCH] fix: #1176 --- internal/rest/handlers/statistics.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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 {