mirror of
https://github.com/hamster1963/HomeDash-Backend.git
synced 2025-06-16 12:11:22 +08:00
20 lines
431 B
Go
20 lines
431 B
Go
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())
|
|
})
|
|
}
|