修复冻结用户即时下线

This commit is contained in:
yml2213
2026-08-30 21:19:47 +08:00
parent 21fbc69c7a
commit 327a03672a
4 changed files with 124 additions and 2 deletions
+3
View File
@@ -427,6 +427,9 @@ func New(cfg config.Config, deps Dependencies, logger *zap.Logger) *gin.Engine {
authRoutes.POST("/password/reset", authHandler.ResetPassword)
authRoutes.POST("/refresh", authHandler.Refresh)
authRoutes.POST("/logout", authHandler.Logout)
if chatHubHandler != nil {
authRoutes.GET("/events", requireAuth, chatHubHandler.UserEvents)
}
}
api.GET("/me", requireAuth, userHandler.Me)