abnormal message notification

This commit is contained in:
landaiqing
2024-09-05 23:34:46 +08:00
parent b3ae27dd20
commit c61c33880c
7 changed files with 44 additions and 200 deletions

View File

@@ -10,8 +10,6 @@ var websocketAPI = api.Api.WebsocketApi
func WebsocketRouter(router *gin.RouterGroup) {
group := router.Group("/ws")
{
group.GET("/socket", websocketAPI.NewSocketClient)
group.GET("/delete", websocketAPI.DeleteClient)
group.GET("/gws", websocketAPI.NewGWSServer)
}

View File

@@ -30,7 +30,7 @@ func InitRouter() *gin.Engine {
MaxAge: 12 * time.Hour,
}))
// 国际化设置
router.Use(middleware.I18n())
router.Use(middleware.I18n(), middleware.ExceptionNotification())
publicGroup := router.Group("api") // 不需要鉴权的路由组
{