✨ abnormal message notification
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
|
@@ -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") // 不需要鉴权的路由组
|
||||
{
|
||||
|
Reference in New Issue
Block a user