feat:完善信息,增加socket
This commit is contained in:
@ -161,6 +161,11 @@ func registerAdminAPI(app *gin.Engine) {
|
||||
apiPrefix + "/v1/account/login",
|
||||
apiPrefix + "/v1/account/logout",
|
||||
}...)))
|
||||
{
|
||||
_api := new(api.Websocket)
|
||||
app.GET("/ws", _api.Ws(config.RedisKeyForAccountAdmin, session.NewAdmin()))
|
||||
app.GET("/ws/publish", _api.Publish)
|
||||
}
|
||||
// Captcha 验证码
|
||||
v1.GET("/captcha", new(api1.Captcha).Captcha)
|
||||
// Upload 上传管理
|
||||
|
Reference in New Issue
Block a user