mirror of
https://github.com/bufanyun/hotgo.git
synced 2025-08-28 15:23:03 +08:00
优化响应中间件,自动识别响应数据格式
This commit is contained in:
@@ -16,10 +16,9 @@ import (
|
||||
|
||||
// Home 前台页面路由
|
||||
func Home(ctx context.Context, group *ghttp.RouterGroup) {
|
||||
// 允许通过根地址访问的路由可以同时加到这里
|
||||
// 访问地址:http://127.0.0.1:8000
|
||||
group.Group("/", func(group *ghttp.RouterGroup) {
|
||||
group.Middleware(service.Middleware().HomeAuth)
|
||||
// 允许通过根地址访问的路由可以加到这里,访问地址:http://127.0.0.1:8000
|
||||
group.Bind(
|
||||
base.Site, // 基础
|
||||
)
|
||||
|
Reference in New Issue
Block a user