mirror of
https://github.com/bufanyun/hotgo.git
synced 2025-08-28 15:23:03 +08:00
代码规范过滤,移除冗余代码,替换掉不推荐的包
This commit is contained in:
@@ -3,7 +3,6 @@
|
||||
// @Copyright Copyright (c) 2023 HotGo CLI
|
||||
// @Author Ms <133814250@qq.com>
|
||||
// @License https://github.com/bufanyun/hotgo/blob/master/LICENSE
|
||||
//
|
||||
package router
|
||||
|
||||
import (
|
||||
@@ -19,7 +18,6 @@ func Home(ctx context.Context, group *ghttp.RouterGroup) {
|
||||
// 注册首页路由
|
||||
group.ALL("/", func(r *ghttp.Request) {
|
||||
_, _ = base.Site.Index(r.Context(), &api.SiteIndexReq{})
|
||||
return
|
||||
})
|
||||
|
||||
prefix := g.Cfg().MustGet(ctx, "router.home.prefix", "/home")
|
||||
|
Reference in New Issue
Block a user