API版本化:迁移会话调用入口

This commit is contained in:
Christ committed 2026-08-14 16:35:54 +08:00
1 parent 6ff3499ca9
commit 42cc9ce675
9 files changed
+145 -12

No files matched your search

+1 -1
View File
@@ -153,7 +153,7 @@ func (s *Server) Router() http.Handler {
r.Use(s.requestLogger)
// 健康检查(无需认证)。
r.Get("/health", s.health)
s.mountHealthAndVersionedSession(r)
// 认证组(无需登录的端点,但解析会话以判断登录态)。
r.Group(func(r chi.Router) {