mirror of
https://github.com/bufanyun/hotgo.git
synced 2025-08-28 15:05:01 +08:00
发布代码生成、更新20+表单组件,优化数据字典,gf版本更新到2.3.1
This commit is contained in:
@@ -19,9 +19,8 @@ import (
|
||||
|
||||
// WebSocket ws路由配置
|
||||
func WebSocket(ctx context.Context, group *ghttp.RouterGroup) {
|
||||
router, _ := g.Cfg().Get(ctx, "router.ws.prefix", "/socket")
|
||||
|
||||
group.Group(router.String(), func(group *ghttp.RouterGroup) {
|
||||
prefix := g.Cfg().MustGet(ctx, "router.ws.prefix", "/socket")
|
||||
group.Group(prefix.String(), func(group *ghttp.RouterGroup) {
|
||||
group.Middleware()
|
||||
group.Bind(
|
||||
controller.Send, // 发送
|
||||
|
Reference in New Issue
Block a user