mirror of
https://github.com/hamster1963/HomeDash-Backend.git
synced 2025-06-18 05:01:22 +08:00
update: 初始化代码提交
This commit is contained in:
19
internal/router/r_hamster_router/router.go
Normal file
19
internal/router/r_hamster_router/router.go
Normal file
@ -0,0 +1,19 @@
|
||||
package r_hamster_router
|
||||
|
||||
import (
|
||||
"github.com/gogf/gf/v2/net/ghttp"
|
||||
"home-network-watcher/internal/controller/data_core"
|
||||
)
|
||||
|
||||
func BindController(group *ghttp.RouterGroup) {
|
||||
group.Group("/", func(group *ghttp.RouterGroup) {
|
||||
BindDataCore(group)
|
||||
})
|
||||
}
|
||||
|
||||
// BindDataCore 注册核心数据路由
|
||||
func BindDataCore(group *ghttp.RouterGroup) {
|
||||
group.Group("/", func(group *ghttp.RouterGroup) {
|
||||
group.Bind(data_core.NewV1())
|
||||
})
|
||||
}
|
Reference in New Issue
Block a user