22 lines
421 B
Go
22 lines
421 B
Go
package router
|
|
|
|
import (
|
|
"context"
|
|
|
|
"git.5iot.com/iotlcm-public/iotlcm-admin-svr/internal/controller/home"
|
|
"git.5iot.com/iotlcm-public/iotlcm-admin-svr/internal/service"
|
|
|
|
"github.com/gogf/gf/v2/net/ghttp"
|
|
)
|
|
|
|
func Home(ctx context.Context, group *ghttp.RouterGroup) {
|
|
group.Group("/home", func(group *ghttp.RouterGroup) {
|
|
group.Middleware(
|
|
service.Middleware().Auth,
|
|
)
|
|
group.Bind(
|
|
home.NewV1(),
|
|
)
|
|
})
|
|
}
|