This commit is contained in:
Fu Diwei
2026-02-02 12:30:04 +08:00
committed by RHQYZ
parent 7bfdd017d5
commit f8954fe9ed
+2 -3
View File
@@ -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 {