mirror of
https://github.com/bufanyun/hotgo.git
synced 2025-08-27 19:35:49 +08:00
修复home中间件加载时机导致的插件接口异常问题
This commit is contained in:
@@ -16,20 +16,19 @@ import (
|
||||
|
||||
// Home 前台页面路由
|
||||
func Home(ctx context.Context, group *ghttp.RouterGroup) {
|
||||
group.Middleware(service.Middleware().HomeAuth)
|
||||
|
||||
// 允许通过根地址访问的路由可以同时加到这里
|
||||
// 访问地址:http://127.0.0.1:8000
|
||||
group.Group("/", func(group *ghttp.RouterGroup) {
|
||||
group.Middleware(service.Middleware().HomeAuth)
|
||||
group.Bind(
|
||||
base.Site, // 基础
|
||||
)
|
||||
})
|
||||
|
||||
// 默认访问地址:http://127.0.0.1:8000/home
|
||||
group.Group(simple.RouterPrefix(ctx, consts.AppHome), func(group *ghttp.RouterGroup) {
|
||||
group.Bind(
|
||||
base.Site, // 基础
|
||||
)
|
||||
// 默认访问地址:http://127.0.0.1:8000/home
|
||||
group.Group(simple.RouterPrefix(ctx, consts.AppHome), func(group *ghttp.RouterGroup) {
|
||||
group.Bind(
|
||||
base.Site, // 基础
|
||||
)
|
||||
})
|
||||
})
|
||||
}
|
||||
|
Reference in New Issue
Block a user